Bug 143485 - Slide image export: master slide image objects display inconsistent across export file formats
Summary: Slide image export: master slide image objects display inconsistent across ex...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Master-Slide File-Export
  Show dependency treegraph
 
Reported: 2021-07-21 17:25 UTC by R. Bingham
Modified: 2023-11-07 10:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODP created with LO 24.2 alpha0+ (53.43 KB, application/vnd.oasis.opendocument.presentation)
2023-11-07 10:39 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Bingham 2021-07-21 17:25:59 UTC
Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

To reproduce:

1) Create new Impress preso.

2) In Master View, create a new master page and insert a .png image object, say the LO logo as a .png.

3) In Normal View, create a slide using the the LO logo master page.  The WYSIWYG GUI view should show the LO logo as an un-selectable background image object.  Not sure how this interacts with the "Slide->Set background image" function.

4) File->Export the created slide to each of the supported image file formats.

5A) Formats .bmp, .jpg, .pdf, .tif show the master page LO logo image object.

5B) Formats .emf, .eps, .gif, .png, .svg (viewed with MS Edge & Inkscape) and .wmf do NOT show the LO logo image object.

Have not tested if the imported object file format on the master page makes a diff.

Regards.
Comment 1 R. Bingham 2021-07-21 17:40:54 UTC
(In reply to R. Bingham from comment #0)
> Version: 7.1.4.2 (x64) / LibreOffice Community
> Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
> CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: threaded
> 
> To reproduce:
> 
> 1) Create new Impress preso.
> 
> 2) In Master View, create a new master page and insert a .png image object,
> say the LO logo as a .png.
> 
> 3) In Normal View, create a slide using the the LO logo master page.  The
> WYSIWYG GUI view should show the LO logo as an un-selectable background
> image object.  Not sure how this interacts with the "Slide->Set background
> image" function.
> 
> 4) File->Export the created slide to each of the supported image file
> formats.
> 
> 5A) Formats .bmp, .jpg, .pdf, .tif show the master page LO logo image object.
> 
> 5B) Formats .emf, .eps, .gif, .png, .svg (viewed with MS Edge & Inkscape)
> and .wmf do NOT show the LO logo image object.
> 
> Have not tested if the imported object file format on the master page makes
> a diff.
> 
> Regards.

Expected results:

A slide image export in any supported export format will show the WYSIWYG GUI view.
Comment 2 Екатерина 2021-08-06 18:22:01 UTC
Hello. It is not clear what the error is. And it is not clear in steps how to get this error
Comment 3 R. Bingham 2021-08-06 21:34:32 UTC
(In reply to Екатерина from comment #2)
> Hello. It is not clear what the error is. And it is not clear in steps how
> to get this error

Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

Steps to reproduce in more detail:

1) In LO, select File->New->Presentation. A new document with name "Untitled 1" or such should be created.

2) Cancel "Select a Template" if that pop-up appears.

3) Select View->Slide Pane then View->Master Slide.  Likely only a single master slide format will show consisting of a "Click to edit" top-of-slide Title Area and a "Click to edit" body area containing a bullet outline heirarchy.

4) Select Slide->New Master.  A second slide master template should appear in the Slides side pane.  It should have name of "Default 1".

5) With the new master selected, Insert->Image then enter (using as readily accessible PNG image) https://ask.libreoffice.org/uploads/asklibo/original/1X/1eec1ce28d4605f25e751aea59dbef2bc0782151.png in the file navigator widget image pathname area then Open. If the image file download is successful than that PNG image should show in the center of the "Default 1" master slide.

6) View->Normal then Slide->New Slide. Slide #2 should appear in the Slide Pane and main edit window. Select the cursor in the slide title are an insert some identifying title such as "Slide 2 title text" to demo its appearance in exported slide.

7) Slide->Change Slide Master. In the "Select a Slide Design" popup, select the master with the LO logo graphic showing then OK. The LO logo graphic should show but be non-selectable as it is a master layer object, not a layer of an individual slide.

8) File->Export then select in the File format droplist any of EMF, EPS, GIF, PNG, SVG or WMF, then select a destination directory and File name of your choice then select Export...

9) A popup may appear with options for the particular export file format selected in (8). Take the defaults then OK.

10)
For export formats EMF, EPS, GIF, SVG or WMF view the export with your favorite image file apps.  The result is an image file containing a slide with the expected title text but no master slide background image. The master slide background image silently disappears.

For export format PNG the result is Warning popup "Image filter not found." then 
 Error popup "Error saving the document Untitled 1: General Error. General input/output error.".

11) PNG PARTIAL WORKAROUND: The master slide image chosen here ( https://ask.libreoffice.org/uploads/asklibo/original/1X/1eec1ce28d4605f25e751aea59dbef2bc0782151.png ) contains transparency.  The bug list concerning LO dealing with transparency in general is long and I'm not going to list it here. If during the export of a slide containing a PNG image with transparency, the PNG option for Drawing Object->Save transparency is UNCHECKED, then the export not only succeeds but results in the expected exported slide image containing the LO logo master slide image.

Regards.
Comment 4 QA Administrators 2021-08-07 03:40:40 UTC Comment hidden (obsolete)
Comment 5 Екатерина 2021-08-10 17:51:11 UTC
confirm in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: cb2827f5f65324f309fa0e3c30d0b19ad237410e
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 6 Stéphane Guillou (stragu) 2023-11-07 10:39:16 UTC
Created attachment 190700 [details]
sample ODP created with LO 24.2 alpha0+

Sample file created to jump straight to the export (step 8 in comment 3).

I could reproduce as described in:

Version: 7.1.0.3 / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

...for picture for EMF, EPS, GIF and WMF. But not for SVG: I can see the master picture in there, even back in 6.2.

However, it now all works as expected in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 31fb3045dabdb27d913712f3abcade315e3ea9bd
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I could no reproduce anymore, I see the background in all exports I tested:
WMF, WEBP, SVG, PNG, JPG, GIF, EPS, EMF, BMP, PDF

Will not try to pinpoint what fixed it given the variety of formats. Marking as "works for me".