Jump to content
skyphyr

Designer Ignores DPI on Export

Recommended Posts

Hi all,

 

So the export setup in Designer always treats a document as being at 72 DPI regardless of either the document setup or the slice DPI. (This is on 1.6.4).

 

To repro, create a new document, set the type to devices, set the page preset to iPhone X (Retina), hit okay. Then switch to the export personas, go to the slices tab, and choose export slices, select a directory then hit okay.

 

Check the created files, they're sized as though the document was set to 72 DPI (so resolution matches size in points). Go back to Designer, set the slice DPI to 216, you'll get the same result.

 

Let me know if you need any further details for repro. (Side note as this one's likely a feature request than a bug, but it would be great if width and height in the tags for export names worked regardless of how you've set the size).

 

Cheers,

 

Alan.

Share this post


Link to post
Share on other sites

Hi Pšenda,

 

I'm afraid that's not the issue I've got. In my case, I'm in Designed, rather than Photo, and there is no original document from outside of Designer, it's a document created in Designer from scratch with settings as I described. Though I did also try disabling the metadata export (though it seemed unlikely) and it makes no difference. This is definitely a huge bug here in baseline functionality.

 

It would be great if someone on the Affinity team could confirm repro on this, or something I'm doing wrong, but I can't see how there couldn't be unit tests validating basic document size matching between the native document and export, though if this has managed to ship this way, I guess it's somehow slipped through.

 

Cheers,

 

Alan

Share this post


Link to post
Share on other sites

HI skyphyr

 

The export persona has an intended quirk when used with 72, 144 or 256 as the DPI. If you use any of these DPIs then Affinity represent the 3 sizes using the 1x  2x and 3x options for apple icon design. So exporting at 1x will always export at 72DPI, 2x at 144DPI and 3x at 256DPI. If you expand the slice  on the slices panel you can go into additional options for the slice path and on has an inout for a dPI where you can specify a DPI manually and it will export at your set DPI even when set to 1x.

 

We seem to be getting this come up a lot lately so I think it is something we might need to look at improving again

 

Thanks


Serif Europe Ltd - Check the latest news at www.affinity.serif.com

Share this post


Link to post
Share on other sites

Hi Chris,

 

Thanks, it sounds more like an antifeature though because it makes the document settings a lie. For instance, if I set the document setting in pixels, the export at 144 and 216 will not export at the set resolution at 1x and as dpi changes the output size varies from native, plus even explicitly setting the dpi in those settings is ignored.

 

I know you’re aware of all this, but I thought having the magnitude of broken workflows and inconsistent behavior would help in revisiting this. I hope it changes so the document settings mean what they say.

 

Cheers,

 

Alan

Share this post


Link to post
Share on other sites

Hi again Chris,

 

Sorry, I just realized you'd mentioned the manual DPI setting. That also doesn't override and use it (which I called out in my original post). Related to this, I noticed that even when a document is set to pixels, it's not interally stored as pixels, so making minor DPI changes to try for behavior doesn't result in the original pixel dimensions being respected. This also has the issue that if your document size were to be something that's not a multiple of whatever the factor (2x or 3x) that it's effectively downscaling the image by, you won't have such a thing as pixel for pixel. 

 

Also means if I made a document at any of these DPIs and I wanted it exported at 2x or 3x the native document resolution, I can only achieve that through manually entering the export resolution. If I try work around to force base pixel resolutions by changing to 72DPI then my point sizes are all wrong. I'm also curious what is the behaviour of pixel preview modes with relation to this setting? Am I seeing my actual document based pixel settings previewed or the magic number refactored versions?

 

This also means to get the file names I want, the process is create a slice, change it from 1x to 3x, open up its export settings, remove of scale suffix. Whereas if it respected the settings, creating a slice would be the only step to get an export that respects the document settings. May not be a big deal for a single slice, but it slows down workflow a lot with multiple. (Yes, I'm aware of the copy paste option for export settings, but that's still a significant hit to workflow and assumes all are going to be identical).

 

Cheers,

 

Alan.

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

×