Jump to content
You must now use your email address to sign in [click for more info] ×

Affinity Designer export PNG trimming non-visible masked content.


Recommended Posts

Is it possible in Affinity Designer to export a selection (File > Export > PNG > Area: Selection without background) where there is masked content, with the resulting file being trimmed to only include the visible content.

For example, I am creating a logo that has a background that extends well beyond the edges of the logo, where the logo shape reveals (via mask) the background I want visible. In fact, if I select the item in Designer the blue bounding box shows the rectangle of the visible content only. This is what I want to export. However, instead the export includes the entire area that the background occupies, so I then have to reopen the file in Preview to trim it down, which is obviously not very efficient.

(btw, if I choose "Selection with Background" it then exports the entire file which I don't want. I just want the selection)

Thank you,

David

Link to comment
Share on other sites

  • Staff

Hi Davidbjames,

I'm not sure if I understand your issue completely if possible could you provide the file in question a long with a screen recording demonstrating the issue? This will allow me to look into this further.

Thanks

C

Please tag me using @ in your reply so I can be sure to respond ASAP.

Link to comment
Share on other sites

Here is a screenshot of the Export dialog, with the setting I want "Selection without background": https://cl.ly/50508bbd8932

I have attached a test document and exported document showing the problem. As you will note when opening the Designer document, the background of "FOO" are large rectangles that extend beyond the "FOO" mask. If you select the main layer you will note that the selection does not include the background, but only the masked area. However, if you export this (the Test Foo.png file) you will see that the resulting PNG includes the entire area, so requires trimming later.

(I think all this was clear in my post, but now you have some examples to work with.)

Test Foo.afdesign

Test Foo.png

Link to comment
Share on other sites

For the foo text i used a boolaen add. The rectangles i pasted inside foo ctrl>alt>V

and yes you can resize afterwards.

intel core i5,  16GB 128Gb ssd win10 Pro Huion new 1060plus.

philips 272p 2560x1440px on intel HD2500 onboard graphics

Razer Tartarus Chroma

Link to comment
Share on other sites

Thanks so much @dutchshader for the excellent video demonstration! (learned this today!)

However getting back to my original question, should I report this as a bug?

1. Create a background on a layer that extends across the screen

2. Create an object or text on the same layer (the size should be smaller than the background to see the problem)

3. Make the object into a mask for the layer so only the background shows for that area

4. Select the layer

5. (note that blue bounding box shows only the area of the mask, not the entire background)

6. Export > PNG > Area > Selection without background... Save.

Expected result: PNG size to include only the selection/masked area.

Actual result: PNG size includes the entire area of the background.

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...
  • 4 months later...

This is an old issue, but I was able to isolate the problem further.

If you make the selection by clicking on the layer palette, presuming this would just be a regular selection of that layer/sublayers, then the problem is reproduced. The exported image is sized with excess background around the intended selection.

However, if you "drag select" the same area, then there is no problem. The exported image is sized correctly.

Link to comment
Share on other sites

  • 5 months later...
  • 1 year later...

Same issue here. I have a logo that has elements masked and it adds invisible pixels outside of the edge of the logo export which are not desired. Why isn't there an export selection that is visible option? Slices are also not ideal as they are fixed in a grid when scaling and I can't get it to properly position around my graphics. Very annoying. 

Link to comment
Share on other sites

16 hours ago, JamesH said:

Slices are also not ideal as they are fixed in a grid when scaling and I can't get it to properly position around my graphics. Very annoying. 

You should try using the Layer to Slice feature of the Export Persona. 

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

On 7/1/2022 at 10:49 AM, Old Bruce said:

You should try using the Layer to Slice feature of the Export Persona. 

It doesn't seem to work for me. See the square borders are showing elements beyond the visible edge. 

Screen Shot 2022-07-04 at 5.04.47 PM.png

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.