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

EMF exports with extra white space


Recommended Posts

I'm unsure whether this is a bug with Affinity or a limitation with the EMF file format, but when exporting the attached document as an EMF extra white space is added to the right and bottom edges. I have verified the white space is present in 4 different applications (Microsoft Office, LabVIEW, Inkscape and an online converter to PNG) so I'm assuming they are correctly rendering EMFs. I've tried changing the resolution to 96 dpi instead of 72, but the same thing happens. It seems to be only certain paths/sizes.

 

If the ascpect ratio of the original are 1:1 it works correctly, but if it's say 100x75, it's most noticeable.

 

If I open the EMF in Affinity, it renders without the extra white space.

 

If I open it using the Microsoft Office 2010 image viewer, it reports the size as 11x10px even though the Affinity document is 12x11px.

A similar thing happens if the original image is larger.

 

It's almost as though Affinity is exporting partial pixels (rounding error?).

 

Inkscape has now decided not to render the EMFs (displays as a white document) so I'm unable to provide a screen shot of that case.

 

Not permitted to upload an EMF, so here's a link: https://www.dropbox.com/s/pin3a6wo7nesypv/Up%20arrow%20Affinity.emf?dl=1

 

More test files at 72dpi:

https://www.dropbox.com/s/z2cajl6vf7mxj41/100x75.emf?dl=1

https://www.dropbox.com/s/hm6fu25nt6dxnji/100x100.emf?dl=1

https://www.dropbox.com/s/yiagm82oqj9332o/100x120.emf?dl=1

Up arrow.afdesign

Highly recommended open source screen capture software (useful for bug reports).

CrPzyCp.jpg

https://getsharex.com/

Link to comment
Share on other sites

  • 2 months later...

Sorry to dig up an old thread, but I'm still unsure about this.

 

I've just been reading the EMF output files using a hex editor and can't understand why the 16 bit "bounds" element in the EMF header for a 100 x 100 px square generated in Affinity Designer translate to an uneven aspect ratio in the exported EMF. I would have expected it to be 1:1 and therefore the x and y DPI to match. Seems a really bizarre way of doing it.

 

https://msdn.microsoft.com/en-us/library/cc230514.aspx

 

Would one of the devs be able to look at the EMF export routine or someone explain what I'm doing wrong?

 

Thanks

Highly recommended open source screen capture software (useful for bug reports).

CrPzyCp.jpg

https://getsharex.com/

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.