Jump to content
Our response time is longer than usual currently. We're working to answer users as quickly as possible and thank you for your continued patience.

Rasterise & Trim not working


Recommended Posts

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.

image.thumb.png.242d35ef63fc269718c45f62036ab00c.png

Am I doing something wrong?

Link to comment
Share on other sites

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

Affinity Store: Affinity Suite (ADe, APh, APu) 1.10.5.1342, 2.0.0.
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 22H2, Build 22621.819.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 10 Pro, Version 21H1, Build 19043.2130.
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

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:

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?

Link to comment
Share on other sites

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?

 

Affinity Store: Affinity Suite (ADe, APh, APu) 1.10.5.1342, 2.0.0.
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 22H2, Build 22621.819.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 10 Pro, Version 21H1, Build 19043.2130.
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

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

Link to comment
Share on other sites

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 by fritzmg
Link to comment
Share on other sites

@fritzmg

Clip Canvas is only available in Affinity Photo. Rasterize and trimming would then bring the result you expect.

AMD Ryzen 5 5600G | 32 GB DDR4 3200MHz | Sapphire RX 5600 XT 6 GB | Windows 11 Pro 2022 Update (22621.900
Affinity Suite V2.0.0
Better translations with: https://www.deepl.com/translator  
SVG preview in Windows Explorer with "SVG-See  Download SVG-See

Yesterday we were on the precipice. Today we are one step further.

Link to comment
Share on other sites

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).

Affinity Store: Affinity Suite (ADe, APh, APu) 1.10.5.1342, 2.0.0.
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 22H2, Build 22621.819.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 10 Pro, Version 21H1, Build 19043.2130.
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

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.

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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.

Affinity Store: Affinity Suite (ADe, APh, APu) 1.10.5.1342, 2.0.0.
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 22H2, Build 22621.819.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 10 Pro, Version 21H1, Build 19043.2130.
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

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.

Affinity Photo 1.10.5, Affinity Designer 1.10.5, Affinity Publisher 1.10.5;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.5.280 & Affinity Designer 1.10.5 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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 😂)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.