Bug 97213 - PNG export of current sheet/page in Calc
Summary: PNG export of current sheet/page in Calc
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.0.2 rc
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 99359 (view as bug list)
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2016-01-17 16:31 UTC by Arnaud LE CAM
Modified: 2023-09-11 22:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
ODS file and its PNG export (97.54 KB, application/gzip)
2016-01-17 16:31 UTC, Arnaud LE CAM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud LE CAM 2016-01-17 16:31:04 UTC
Created attachment 122038 [details]
ODS file and its PNG export

Actually, PNG export produces a large area screenshot (for a A4 document, nothing is visible on the PNG export.
It would be useful to select the page the cursor is on (like Writer's PNG export function seems to).
Comment 1 m_a_riosv 2016-01-18 09:17:31 UTC
Reproducible.
Win10x64
Version: 5.1.0.2 (x64)
Build ID: ecd3574d51754b043f865cf5bafee286d24db7cc
CPU Threads: 4; OS Version: Windows 6.19; UI Render: GL; 

Selection option on export doesn't work, selecting the graph or cells.
Comment 2 Eike Rathke 2017-09-11 14:23:22 UTC
*** Bug 99359 has been marked as a duplicate of this bug. ***
Comment 3 Stéphane Guillou (stragu) 2023-09-06 21:44:58 UTC
Can't reproduce in recent master nor in 5.1.0.2, when feature was introduced.
For me, it always results in a PNG of Sheet 1 - Page 1.

1. Open attached ODS
2. Without moving the cursor (in cell C4), use File > Export... > PNG.

Arnaud and m.a.riosv, can you please check again? (And I don't think the "Selection" option is relevant here. I tested without it.)
Comment 4 m_a_riosv 2023-09-07 00:05:58 UTC
Export selection works for me in
Versión: 6.4.7.2 (x64)
Id. de compilación: 639b8ac485750d5696d7590a72ef1b496725cfb5
Subprocs. CPU: 16; SO: Windows 10.0 Build 22621; Repres. IU: GL; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES Calc: CL
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 410632ac4b8a280e0993e665ffa9cfede8326b49
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded Jumbo

To png, I think only one page can be exported.
Comment 5 Stéphane Guillou (stragu) 2023-09-08 20:06:31 UTC
m.a.riosv from comment #4)
> Export selection works for me in
But have you tested _without_ selection? Could you ever reproduce Arnaud's results? If not, let's set back to needinfo and see if Arnaud can still reproduce.
Duplicate bug 99359 was mainly about another issue, and there's no proof it actually exported several pages at once instead of one.
Comment 6 Arnaud LE CAM 2023-09-11 22:32:34 UTC
(In reply to Stéphane Guillou (stragu) from comment #5)
> m.a.riosv from comment #4)
> > Export selection works for me in
> But have you tested _without_ selection? Could you ever reproduce Arnaud's
> results? If not, let's set back to needinfo and see if Arnaud can still
> reproduce.
> Duplicate bug 99359 was mainly about another issue, and there's no proof it
> actually exported several pages at once instead of one.

Unreproductible with 7.6.0.3 (with or without "Selection" option checked)
Do you want me to try with an older version ?
Comment 7 Stéphane Guillou (stragu) 2023-09-11 22:49:18 UTC
Thank you Arnaud for testing again after 7 years!
Let's mark as "works for me" then, as we haven't identified a fixing commit.