matt.baker Posted August 23, 2016 Share Posted August 23, 2016 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 matt.baker 1 Quote Highly recommended open source screen capture software (useful for bug reports). https://getsharex.com/ Link to comment Share on other sites More sharing options...
matt.baker Posted August 23, 2016 Author Share Posted August 23, 2016 To add to this, Office viewer reports the Horizontal resolution as 81.55 dpi and 81.64 dpi for the Vertical resolution. I would have expected these to be identical and match the Affinity document. EMF test.zip Quote Highly recommended open source screen capture software (useful for bug reports). https://getsharex.com/ Link to comment Share on other sites More sharing options...
matt.baker Posted November 16, 2016 Author Share Posted November 16, 2016 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 Quote Highly recommended open source screen capture software (useful for bug reports). https://getsharex.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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.