Bug 158491 - FILESAVE: the size ratio of a slide exported to png file format is modified when the format of the slide has margins not null
Summary: FILESAVE: the size ratio of a slide exported to png file format is modified w...
Status: RESOLVED DUPLICATE of bug 89828
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2023-12-02 15:32 UTC by Fabrizio
Modified: 2024-06-18 10:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A slide in A6 portrait format showing a circle 5cm x 5cm exported to PNG (12.18 KB, image/png)
2023-12-02 15:32 UTC, Fabrizio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabrizio 2023-12-02 15:32:04 UTC
Created attachment 191192 [details]
A slide in A6 portrait format showing a circle 5cm x 5cm exported to PNG

In same cases, the size ratio of a slide exported to png file format is modified. It happens when the format of the slide has margins not null.
The attached png file is created by exporting a slide in format A6 portrait with margins set to 1cm (default margins). On the slide, the figure is a circle of size 5cm x 5cm.

No distortion appears when the margins are set to null or when the slide (with or without margins) is exported to jpg file format.

Please note that the behavior reported is not due to changes of margins value.
(which could be another problem). The figure on the slide is a circle just before and after exporting it (checked on position and size tab).

My Steps to get the png file attached
File > New > Presentation
Slide > Layout > Blank Slide
RMB (right mouse button) on the slide > Slide properties
Select ‘Slide’ tab if it is not already selected
Choose Paper Format A6 portrait 
Check if the 4 margins are set to 1cm. If not set them to 1cm.
LMB (left mouse button) on OK button

LMB on Ellipse button
LMB on the slide (near the center)
RMB on the small circle > Position and Size
Set the size base point to the center
Set “keep ratio”
Set “Width” to 5cm
LMB on OK button

File > Export
Select PNG on drop down menu ‘Save as type’ and save

For comparison purpose

File > Export
Select JPEG on drop down menu ‘Save as type’ and save
Comment 1 Buovjaga 2024-01-16 17:59:17 UTC
Bibisected with linux-41max to a1a0830d1ac3ffabbe35bd8a0264b64f1f7a9d67

Resolves: #i119601# support for transparency in PNG export dialog

There are other regression reports for this commit, some fixed, but there doesn't seem to be anything for this specific case.
Comment 2 Stéphane Guillou (stragu) 2024-06-18 10:30:51 UTC
The issue is the same with GIF and other formats exported with transparency, so my understanding is that Armin's commit only made a pre-existing issue visible in PNG export. Issue of margins excluded from export is tracked in bug 89828.
See also bug 122155, a regression that started stretching the export.

*** This bug has been marked as a duplicate of bug 89828 ***