[Libreoffice-bugs] [Bug 144279] Exporting a selected shape of 7x7 to any image format shows size of 7, 01 cm in the export options dialog (see comment 3)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 3 11:18:17 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144279

Telesto <telesto at surfxs.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|NOTABUG                     |---
             Status|RESOLVED                    |UNCONFIRMED

--- Comment #6 from Telesto <telesto at surfxs.nl> ---
(In reply to Mike Kaganski from comment #5)
> This is normal.
> 
> You are saving a raster image file that must have an integral number of
> pixels in both dimensions. You define a resolution:
> > Note: assuming DPI 96
> 
> which means that each pixel is exactly 1/96 in ~ 0.264583 mm.
> 
> Such an image may only have 264 or 265 pixels to approximate 7 cm. In first
> case, the resulting actual metric size would be 69.85 mm; in the second, it
> would be ~70.114 mm. That is correctly displayed to the user.

Ah, however, - shifting goalposts a little - still confused why there is the
variation.. 
* 7,01 cm on dialog initialization. And 6,98 cm after bumping DPI to 97 and
back to 96. If this is a rounding should end up this way, please make it
consistent.
* And even worse in case of switching from DPI to Pixel to CM. Where moving 37
Pixel the CM up to 38 and back to 37 end up with 7,16 CM not 7,01 cm

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210903/b9488a5f/attachment.htm>


More information about the Libreoffice-bugs mailing list