Bug 138069 - After inserting SVG/EMF pictures LO-7.x.x creates fallback PNG copy of the picture with incorrect size in pixels
Summary: After inserting SVG/EMF pictures LO-7.x.x creates fallback PNG copy of the pi...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-08 11:05 UTC by Kyrylo Zharenkov
Modified: 2020-11-14 22:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LO_7_file_with_SVG_and_EMF_pictures (3.06 MB, application/vnd.oasis.opendocument.presentation)
2020-11-08 11:05 UTC, Kyrylo Zharenkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyrylo Zharenkov 2020-11-08 11:05:41 UTC
Created attachment 167094 [details]
LO_7_file_with_SVG_and_EMF_pictures

The bug is actual Only for LO 7.x.x.
In LO 6 everything is okay.


Steps to reproduce:
1)Insert EMF/SVG picture in a new file ( I've used Impress, but this bug is actual for all editors(Calc, Text, Impress, etc).

2) Save the file into the ODP format.

3) Unzip it and find a fallback PNG copy of the picture related to SVG/EMF picture.

4) Compare fallback PNG copy's resolution in pixels and the original resolution in pixels of SVG/EMF picture. 

Actual result:
PNG copy of the picture has a different resolution from SVG/EMF picture.

Expected result:
 PNG copy of the picture has the same resolution as an original SVG/EMF picture.

P.S. I've attached a file from LO 7 with SVG\EMF pictures for analysis.
Comment 1 Telesto 2020-11-08 19:04:26 UTC
Setting back to UNCONFIRMED.. self-confirming is a no go
Comment 2 Regina Henschel 2020-11-10 14:47:49 UTC
For the png replacement graphic, LibreOffice considers the resolution of the display. If your display has a resolution of 120dpi you will get a different number of pixels than with 96dpi. For example: In your case the svg-graphic has a width of 612px. With 1px = 1/96th inch as defined in SVG2, you get a width of 6.375 inch. For a 120dpi display this results in 765 pixel in the png replacement image. The information, which resolution was used, is stored in the png-image too.

Without knowing your display resolution, it is not possible to say whether it is wrong or not.
Comment 3 Kyrylo Zharenkov 2020-11-10 15:43:44 UTC
I use MacBook pro 2019 16" with screen resolution 3072 x 1920 and I guess my DPI is 120
Comment 4 Kyrylo Zharenkov 2020-11-10 16:29:41 UTC
Regina Henschel, Thank you a lot for your support. I've understood new behavior and I think it's not a bug. It can be closed.