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

Export selection without background still gives whitespaces


Recommended Posts

What exactly do you have you selected?

I ask because in your afdesign file I see only a curve (the line) with a rectangle nested in it. So whichever one I select, in the AD export PNG dialog the only choices for Area are "Whole Document," "Selection Area," & "Selection Only." There is no "Export selection without background" option for me.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Yes, there are multiple issues:

1) Designer (or any oher Affinity app) cannot export accurately a selection that is masked or clipped, but instead, if an object is masked (as in OP's example), the object boundaries of the masked shape will determine the export size (in this case the line extends to left and right of the mask so there would be extra padding on left and right):

selection_masked.jpg.6a1d952875f9559ca18c0ff8e68f9d18.jpg

or if it is clipped, the clipping shape determines the export size in this case there would be extra padding at top and bottom according to the clipping rectangle's height):

selection_clipped.jpg.cad07818a024ccae8a6fb47c933dee13.jpg

This means in practice that the selection to be exported needs to be rasterized before exporting to be exported exactly to the desired effective bounding box where pixels will be rendered:

selection_rasterized.jpg.1c7452ea5e0403bc8761199e7aa358de.jpg

line_fixed.thumb.png.edd71bc5ed6e905a56b94e3e281886fd.png

2) In addition: if the canvas is smaller than the exported selection, the parts that go beyond the canvas will not be rendered but cause transparent padding, so to fix this specific case, the canvas should first be expanded and then the selection be rasterized and exported as a selection only after that. A necessity to do that is truly annoying.

3) Last, it seems that Affinity has removed the user's possibility to choose whether selections are exported to PNG with or without a background. At least in 1.8.5 versions this option still existed but not in current release versions. So currently PNG selections will always have a transparent background, also in paletted versions. [EDIT: In current version this option is titled "Selection Area".]

Link to comment
Share on other sites

27 minutes ago, Lagarto said:

...

3) Last, it seems that Affinity has removed the user's possibility to choose whether selections are exported to PNG with or without a background. At least in 1.8.5 versions this option still existed but not in current release versions. So currently PNG selections will always have a transparent background, also in paletted versions.

In the "More"-option in the export dialoque you can choose the backround color. Defaul is set to 'none'.

annoying_af.thumb.png.e7de6dedc547503cd49503b0b144b3ae.pngannoying_af_.thumb.png.c5424027ae10fcd509bb8e988afd0733.png

AMD Ryzen 7 5700X | INTEL Arc A770 LE 16 GB  | 32 GB DDR4 3200MHz | Windows 11 Pro 23H2 (22631.3296)
AMD A10-9600P | dGPU R7 M340 (2 GB)  | 8 GB DDR4 2133 MHz | Windows 10 Home 22H2 (1945.3803) 

Affinity Suite V 2.4 & Beta 2.(latest)
Better translations with: https://www.deepl.com/translator  
Interested in a robust (selfhosted) PDF Solution? Have a look at Stirling PDF

Life is too short to have meaningless discussions!

Link to comment
Share on other sites

On 9/5/2021 at 11:25 AM, Komatös said:

In the "More"-option in the export dialoque you can choose the backround color. Defaul is set to 'none'.

Oh yes, there is still the matte option, and it seems the current term for including whatever is under the selection boundary box (the former "Selection with background") is now "Selection Area":

line_w_bg_185.thumb.png.54d66d15bfe4589b8ced1d3b36ea9409.png

Anyway, the selection that gets exported is not what most users would expect, when using masks or clipped object. 

EDIT: What one would expect is of course subjective and determined on what one is used to: in CorelDRAW the exported (PNG) selections are defined by the actual clipping mask, not the clipped object(s), but e.g. in Illustrator both the clipping shape and the clipped object(s) together determine the export bounding box. 

EDIT2: The only way to have cropped export without rasterizing (and not including the boundary boxes of shapes used for masking) that I can think of is creating an artboard (and if necessary move the art to be exported onto the newly created artboard), and then manually size the artboard so that it accurately encloses the art. After that choosing just the specific artboard as the source of export would give a file without whitespace on edges. 

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.