fritzmg Posted September 12, 2022 Share Posted September 12, 2022 I have a transparent PNG where I want to trim the image to the non-transparent pixels. As far as I have searched around within Affinity Designer I can use the "Rasterise & Trim ..." mechanic in the layer menu. However nothing happens at all when I choose this option. No additional menu pops up (which I assume there would be since the action's name ends with ellipses) and the PNG stays the same. Am I doing something wrong? Quote Link to comment Share on other sites More sharing options...
Pšenda Posted September 12, 2022 Share Posted September 12, 2022 10 minutes ago, fritzmg said: However nothing happens at all when I choose this option. See History panel. 10 minutes ago, fritzmg said: No additional menu pops up (which I assume there would be since the action's name ends with ellipses) Obvious bug - no dialog pops up anymore. 11 minutes ago, fritzmg said: and the PNG stays the same What would you expect to happen?https://affinity.help/designer/en-US.lproj/pages/ObjectControl/rasterizing.html Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
fritzmg Posted September 12, 2022 Author Share Posted September 12, 2022 1 minute ago, Pšenda said: See History panel. The history only says "Rasterise". 2 minutes ago, Pšenda said: Obvious bug - no dialog pops up anymore. So "Rasterise & Trim ..." is indeed not working as intended in the current version of Affinity Designer? 2 minutes ago, Pšenda said: What would you expect to happen?https://affinity.help/designer/en-US.lproj/pages/ObjectControl/rasterizing.html I want to trim the image to the non-transparent pixels. According to other threads here on the forum "Rasterize & Trim ..." can do that in Affinity Designer (in Affinity Photo it would be Document > Clip Canvas Though according to that help article "Rasterize & Trim ..." does not seem to be the right tool for that. If that is the case - is there actually a way to trim an image in Affinity Designer to the non transparent parts? Quote Link to comment Share on other sites More sharing options...
Pšenda Posted September 12, 2022 Share Posted September 12, 2022 8 minutes ago, fritzmg said: So "Rasterise & Trim ..." is indeed not working as intended in the current version of Affinity Designer? The function does exactly what it is supposed to do - as is clear from my post, I am only responding to the incorrect use of "ellipsis". 6 minutes ago, fritzmg said: is there actually a way to trim an image in Affinity Designer to the non transparent parts? In your screenshot, however, the image is cropped to opaque pixels. What else should be trimmed? Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
carl123 Posted September 12, 2022 Share Posted September 12, 2022 26 minutes ago, fritzmg said: However nothing happens at all when I choose this option. No additional menu pops up (which I assume there would be since the action's name ends with ellipses)and the PNG stays the same. The additional menu pops up only if you have a Layer Effect applied. But it does do as it says without an Effect applied 11 minutes ago, fritzmg said: is there actually a way to trim an image in Affinity Designer to the non transparent parts? If you mean trim the canvas to the size of your PNG, I don't think so But you can copy the PNG layer then do File > New from Clipboard to get a new document of that size Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
fritzmg Posted September 12, 2022 Author Share Posted September 12, 2022 (edited) 39 minutes ago, Pšenda said: The function does exactly what it is supposed to do - as is clear from my post, I am only responding to the incorrect use of "ellipsis". Ah yes, I see what you mean. 35 minutes ago, carl123 said: if you mean trim the canvas to the size of your PNG, I don't think so Yes, that is what I meant. Too bad - but I get that Designer is may be not the right tool for the job, I was just wondering whether there was a way (and I incorrectly assumed "Rasterize & Trim ..." would do it). Edited September 12, 2022 by fritzmg Quote Link to comment Share on other sites More sharing options...
Komatös Posted September 12, 2022 Share Posted September 12, 2022 @fritzmg Clip Canvas is only available in Affinity Photo. Rasterize and trimming would then bring the result you expect. Quote AMD Ryzen 7 5700X | INTEL Arc A770 LE 16 GB | 32 GB DDR4 3200MHz | Windows 11 Pro 24H2 (26100.2161) Affinity Suite V 2.5.5 & Beta 2.6 (latest) Interested in a free (selfhosted) PDF Solution? Have a look at Stirling PDF I am not old, I have matured like a good scotch! Link to comment Share on other sites More sharing options...
Pšenda Posted September 12, 2022 Share Posted September 12, 2022 2 hours ago, carl123 said: The additional menu pops up only if you have a Layer Effect applied. It's a shame and, in my opinion, a error in the design that the "context" menu does not respect the context, i.e. the current state of the layer (presence/absence of fx). NotMyFault 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
fritzmg Posted September 12, 2022 Author Share Posted September 12, 2022 1 hour ago, Komatös said: Rasterize and trimming would then bring the result you expect. But it doesn't (and as explained in this thread it is not supposed to). Quote Link to comment Share on other sites More sharing options...
R C-R Posted September 12, 2022 Share Posted September 12, 2022 1 hour ago, Pšenda said: It's a shame and, in my opinion, a error in the design that the "context" menu does not respect the context, i.e. the current state of the layer (presence/absence of fx). At least for apps running on the macOS, I am not sure this could be supported by the code built into the OS that displays menu items, so if not, it would require special app level coding that might be impractical or difficult to implement because of how it could affect other menu items. Pšenda 1 Quote All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
Pšenda Posted September 12, 2022 Share Posted September 12, 2022 4 hours ago, R C-R said: At least for apps running on the macOS, I am not sure this could be supported by the code built into the OS that displays menu items, so if not, it would require special app level coding that might be impractical or difficult to implement because of how it could affect other menu items. The context menu and its items are of course controlled at the application level, and should be based on the context (current state) of the object/element on which the menu is invoked. If the context menu items for a given type of objects/elements do not change according to reality (according to the current state of the elements/application), the main advantage and defacto meaning of the "context" menu is lost. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
R C-R Posted September 12, 2022 Share Posted September 12, 2022 2 hours ago, Pšenda said: The context menu and its items are of course controlled at the application level... AFAIK, not completely, at least in the macOS. Apps can tell the OS if some menu item is not available & should be greyed out, but I do not think they can change the wording (including the ellipsis) of any menu item. At least I have never seen this in any Mac app. Quote All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
JimmyJack Posted September 12, 2022 Share Posted September 12, 2022 12 hours ago, fritzmg said: Ah yes, I see what you mean. Yes, that is what I meant. Too bad - but I get that Designer is may be not the right tool for the job, I was just wondering whether there was a way (and I incorrectly assumed "Rasterize & Trim ..." would do it). (not sure this saves any clicks vs copy + new from clipboard, but it does keep you in the same document) In Designer you can use make Artboard from selection. And, if that isn't enough you can then hit delete (with artboard selected). You will be asked if you want to keep the objects. Say yes, and you will be left with a "regular" canvas the size of your artwork. Annnnnd, if this is possible there is no reason why a straight clip/crop-to-artwork isn't available. (note: if you right click on the artboard in the layers panel and select delete, you will not be given the option to keep objects. An inconsistency I pointed out years ago which the devs were going to look into 😂) Quote Link to comment Share on other sites More sharing options...
fritzmg Posted September 20, 2022 Author Share Posted September 20, 2022 Just wanted to mention that Adobe Illustrator for example does have a dedicated option for this under "Object": This will crop the artboard to the objects on the artboard. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.