Note that this issue also applies to Impress; not sure if I should have selected a different component.
Selecting objects and then doing File > Export, checking "selection", and saving to various bitmap image formats (bmp, png, jpeg, etc.) produces files that are distorted (i.e. incorrect aspect ratio): usually, the objects appear to be stretched vertically/compressed horizontally. Attempting to change the height/width options does not prevent this issue since changing one causes the other to be recalculated according to the (incorrect) aspect ratio.
Unfortunately, I'm not sure what the exact conditions for reproducing this are. At first, I believed this only occurred when selecting single text boxes, and not when selecting two text boxes or a text box plus a shape; but I have since been able to create distorted output for selections of multiple objects.
The attached examples are of a single text box, two offset identical text boxes, and each text box with a circle; all have some amount of distortion, but the single text box is the most noticeable example.
This issue seems to happen regardless of OS (have reproduced on Windows, Mac and Linux).
Earliest version I have tried so far which has this issue is 6.2.4; it does not appear to be present in 6.1.6 or earlier.
Created attachment 152694 [details]
Test drawing used to produce example PNG files
Created attachment 152695 [details]
PNG output for single text box
Created attachment 152696 [details]
PNG output for two text boxes
Created attachment 152697 [details]
PNG output for upper text box and circle
Created attachment 152698 [details]
PNG output for lower text box and circle
It was OK in Version: 188.8.131.52.alpha0+ (x64)
Build ID: 215780a7eca23c1bfcde74958e10ae84ea12d506
CPU threads: 8; OS: Windows 10.0; UI render: default;
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-08-15_22:56:00
Locale: de-DE (en_US); Calc: CL
It is broken in Version: 184.108.40.206.alpha1+ (x64)
Build ID: bf4fc97131147d25b18d088023262c977f0b2787
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win;
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-10_01:58:33
Locale: de-DE (en_US); UI-Language: en-US
The glyphs are stretched to the box size, the space above and below the glyphs is missing. If you insert the produced image and compare it with the source, you see the distortion immediately.
This seems to have begun at the below commit.
Adding Cc: to Armin Le Grand; Could you possibly take a look at this one? Thanks
06599193348562f3e4878a9b149ad8caed7554fe is the first bad commit
Author: Norbert Thiebaud <email@example.com>
Date: Fri Aug 17 12:33:05 2018 -0700
author Armin Le Grand <Armin.Le.Grand@cib.de> 2018-08-16 20:20:47 +0200
committer Armin Le Grand <Armin.Le.Grand@cib.de> 2018-08-17 21:27:40 +0200
commit 046df0a876b3d948bb1e14443c00c180bc8cccaa (patch)
parent bc28d51cb88c796da241d1ab914bbe6bb174cc49 (diff)
tdf#105998: Enhanced fix for MetafileToBitmap at better place