Bug 153372 - Text dropped when exporting embedded spreadsheet as png
Summary: Text dropped when exporting embedded spreadsheet as png
Status: RESOLVED DUPLICATE of bug 153672
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 10:47 UTC by Alistair Saywell
Modified: 2023-05-14 08:52 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Draw file with embedded spreadsheet. Select object and export selection as PNG: No text (22.21 KB, application/vnd.oasis.opendocument.graphics)
2023-02-04 10:47 UTC, Alistair Saywell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Saywell 2023-02-04 10:47:50 UTC
Created attachment 185102 [details]
Draw file with embedded spreadsheet. Select object and export selection as PNG: No text

Exporting to png an image of a spreadsheet embedded in a Draw page now exports only the underlining, backgrounds and possibly other drawing items but not text. Reduced file size indicates loss of the text image, 2kb vs 27kb from (7.3.7.2).

Export to SVG works correctly in 7.5.0.3

Exports to PNG correctly in 7.3.7.2 and earlier. Discovery of bug resulting from question in Ask LibreOffice see https://ask.libreoffice.org/t/is-there-any-way-to-export-calc-spreadsheet-with-transparent-background/87415/4
Comment 1 m_a_riosv 2023-02-04 16:37:41 UTC
Seems that this happens with the new option Menu/File/Exports as image, but works fine on Menu/File/Export.
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 2 raal 2023-02-06 16:52:56 UTC
This seems to have begun at the below commit.
Adding Cc: to offtkp ; Could you possibly take a look at this one?
Thanks
 47b810ff80dca560f10916888f8ecbf3574ee357 is the first bad commit
commit 47b810ff80dca560f10916888f8ecbf3574ee357
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jul 19 13:15:25 2022 +0200

    source 1d548a2bc70e0b38e32ccae8b15b04bda84f3576

https://git.libreoffice.org/core/+/1d548a2bc70e0b38e32ccae8b15b04bda84f3576
Comment 3 Stéphane Guillou (stragu) 2023-05-13 22:15:42 UTC
(In reply to m.a.riosv from comment #1)
> Seems that this happens with the new option Menu/File/Exports as image, but
> works fine on Menu/File/Export.
> Version: 7.5.0.3 (X86_64) / LibreOffice Community
> Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
> CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL:
> win
> Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

Miguel Ángel, I don't see a new "File > Export as > Image" menu item.
Can you please clarify?

raal and Alistair, I think we might be lumping two issues together here.
- There was a problem in image exports in 7.5, which is since fixed (see bug 153672 and its many duplicates). I think that's the loss of text that Alistair was seeing. Alistair, can you please confirm that your issue is resolved in 7.5.3 ?
- raal, maybe the issue you bibisected was the 0-byte PNG resulting of an export with "Save transparency" off, which would be bug 154168, bibisected to the same commit. Can you please confirm?
Comment 4 m_a_riosv 2023-05-14 00:31:15 UTC
(In reply to Stéphane Guillou (stragu) from comment #3)
...
> Miguel Ángel, I don't see a new "File > Export as > Image" menu item.
> Can you please clarify?
It is for me if you are in Draw.
Comment 5 Alistair Saywell 2023-05-14 04:59:14 UTC
(In reply to Stéphane Guillou (stragu) from comment #3)

> ... Alistair, can you please confirm that your issue is
> resolved in 7.5.3 ?

Hi Stéphane. Yes, on my tests with 7.5.3.2 the numbers were exported properly so as far as I am concerned it could be marked as fixed.
Cheers, Al
Comment 6 Stéphane Guillou (stragu) 2023-05-14 08:52:18 UTC
(In reply to m.a.riosv from comment #4)
> (In reply to Stéphane Guillou (stragu) from comment #3)
> ...
> > Miguel Ángel, I don't see a new "File > Export as > Image" menu item.
> > Can you please clarify?
> It is for me if you are in Draw.

Are you using this extension? https://extensions.libreoffice.org/en/extensions/show/export-as-images

(In reply to Alistair Saywell from comment #5)
> (In reply to Stéphane Guillou (stragu) from comment #3)
> 
> > ... Alistair, can you please confirm that your issue is
> > resolved in 7.5.3 ?
> 
> Hi Stéphane. Yes, on my tests with 7.5.3.2 the numbers were exported
> properly so as far as I am concerned it could be marked as fixed.
> Cheers, Al

Thanks for the reply, Alistair. Marking this as a duplicate of bug 153672 then.

Raal, I'll assume what you were seeing was bug 154168, which is in See Also.

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