Jump to content

Recommended Posts

Hi everyone,

 

Just bought Affinity and love it. Sorry to ask what might be a dumb question but I searched and couldn't find a clear answer on any of the other forum threads. 

 

Is there currently an option to trim away transparent areas in Affinity? In Photoshop, for example there is an option under the Image menu for Trim... > Transparent Pixels. Is there anything similar in Affinity?

 

Thanks for any help, and well done to Serif for an outstanding product.  :)

Share this post


Link to post
Share on other sites

Ah - I see. At least I'm not going mad!

 

Are there any plans to add this function to future updates of Designer? I've found myself looking for it regularly in my work and would be really useful.

Share this post


Link to post
Share on other sites

I really could use a Trim command as well. Especially in web design, where you want the smallest image possible to, say, blend into a background of the same colour.

Share this post


Link to post
Share on other sites

Hi DrPocter,

For web design you can use the Export Persona to achieve the same result and even automate the process a little. Export Persona allows you to create a slice (with the size) of the objects from a single layer (or single object or group). If you keep all icons/images/assets organised by layers this should speed up assets export considerably. You can also enable Continuous (Export) from the bottom of the Slice panel to automatically update all the assets in a specific folder every time you perform a change to one of the objects.

Share this post


Link to post
Share on other sites

Hi MEB - 

 

Thanks for the reply, but I'm still having a little trouble with this:

 

1. When I enter the Export persona and select the Slice I want to export, I change the Export Options at the top from 'JPEG' to 'PNG' to preserve transparency. However, the file being exported remains a JPEG. Am I doing something wrong or could this be a bug?

 

2. Similarly, I think a 'Trim' option would be useful anyway so that I could take away transparent areas and then enlarge the output to a specific size (say, 800px wide). Having a slice do this automatically means the final PNG file is an unknown pixel size. Is there anywhere to make feature requests for future updates?

Share this post


Link to post
Share on other sites

A lot of bugs were fixed since the last Mac App Store update, some related with the Export Persona. If you want to give it a try, you can get it from here (usually pinned at top).

Just remember to keep the MAS version installed (so you can run the Beta without time restrictions) and that files created or saved with the Beta cannot be opened in the Mac App Store version until the next update ( the file format is more advanced in the beta and not compatible with the current MAS version).

 

If you prefer you can wait for the next Mac App Store update which should be available (if everything goes well) in a couple weeks.

 

Yes, we have a section for feature requests here.

Share this post


Link to post
Share on other sites

Hi Meb,

 

Thanks for your reply and for your tips.

 

As a matter of fact I already use slices to export assets for web design projects (and they are great).

 

But I still have the problem (not limited to web design) where I want to remove the superfluous, repeating pixels on the edges of an image. As the (or maybe just my?) artwork often blends into a background, it's not always easy to see where that boundary is. But it would be easy for an algorithm.

 

I don't need an elaborate dialog à la Photoshop either. Just a command that trims repeating lines of the same colour (or transparency, but that already exists if I understand correctly) at the four edges of an image.

Share this post


Link to post
Share on other sites

+1 for a

1) trim transparent pixels

2) trim pixels with top left color (or selected color)

 

both in photo and designer

Share this post


Link to post
Share on other sites

Hmmm. The Clip Canvas in photo doesn't work the same as "trim" in photoshop. It just makes the image smaller, but creates more white space above--for me, at least. Is there a way to customize that? 

Share this post


Link to post
Share on other sites

Hi soulstatic,

Welcome to Affinity Forums :)

Yes, it doesn't work exactly like Photoshop.

If it's adding space it's probably because you have some objects/layers crossing the canvas. Basically it's removing the transparent areas where there's no content and adding space to encompass content that extends beyond the document boundaries. To avoid the added space right-click the layer(s) that's crossing the canvas and select Rasterise... to get rid of the content that lays outside the canvas. Then apply the Clip Canvas command again.

Share this post


Link to post
Share on other sites

Adding my two cents here too (probably because Photoshop's "trim" function was integrated in my workflow).

I find it super useful to remove the most "top-left" (pixel) color all-around even if it's not transparent. A big plus would be to add the ability to remove it only from given sides… 

I'm missing this function since my jump to Affinity Photo.

Share this post


Link to post
Share on other sites

+1. Stop trying to impose us your workflow please.

 

We are the designers, we know our workflow. The workflow that the devs at affinity are trying to force us to do doesn't make any sense.

 

Thanks

Share this post


Link to post
Share on other sites

Hello,

Need to warm the thread up again: have lots of psd files with masked background, in PS its trims by transparency, ie to the rim of visible object,

Still trying to switch to APhoto but CLIP CANVAS does not do the job in such case. How could I trim/crop transparent/masked surrounding of the object /need to define an action for this because these are hundreds of such files/...


cheers,

AF Photo+Designer+Publisher and their betas on Win10 x64+AmdFX+24GB RAM

 

Share this post


Link to post
Share on other sites

@Zbigg

You should upload a sample file or two if you want help with this


Due to the ongoing Brexit negotiations, punctuation, spelling and grammar will be used sparingly until further notice.

Share this post


Link to post
Share on other sites

 

45 minutes ago, Zbigg said:

Hello,

Need to warm the thread up again: have lots of psd files with masked background, in PS its trims by transparency, ie to the rim of visible object,

Still trying to switch to APhoto but CLIP CANVAS does not do the job in such case. How could I trim/crop transparent/masked surrounding of the object /need to define an action for this because these are hundreds of such files/...

In normal ‘document’ mode, Affinity Designer works like a page layout program, such as Quark or Word for that matter. You set a page size, apply bleed, then place objects on the page. Neither Quark, Word or Designer (or any such program as far as I know) trims a page to an image placed on it?

That’s why there are canvas based programs like Photoshop or Photo, which are based around an image and make that job easy.

The choices are to use Photo (which is designed for that purpose) or use Designer’s artboard feature which does allow you to trim to a canvas (or artboard).

Photo does not ‘clip’ if there is a layer that extends outside the masked area, hidden or not. Could that be your problem?


Windows PCs. Photo and Designer, latest non-beta versions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×