Jump to content

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 (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

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 (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

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

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

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

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 (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

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.

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
A
ll 3 V2 apps 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 (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

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.

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
A
ll 3 V2 apps 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...
×
×
  • Create New...

Important Information

Terms of Use | 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.