Bug 125386 - Export as PNG is NOT scaling up when using Multi-language.
Summary: Export as PNG is NOT scaling up when using Multi-language.
Status: RESOLVED DUPLICATE of bug 137263
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Graphics-Export
  Show dependency treegraph
 
Reported: 2019-05-20 10:41 UTC by i.kato80
Modified: 2023-09-18 21:38 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
File "Export as PNG on Calc.ods" (11.88 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-05-20 10:44 UTC, i.kato80
Details
Image of 96 dpi (default) scaling. (3.90 KB, image/png)
2019-05-20 10:45 UTC, i.kato80
Details
Image of 120 dpi scaling. (6.34 KB, image/png)
2019-05-20 10:46 UTC, i.kato80
Details
Image of 150 dpi scaling. (13.85 KB, image/png)
2019-05-20 10:47 UTC, i.kato80
Details
Image of 192 dpi scaling. (40.83 KB, image/png)
2019-05-20 10:48 UTC, i.kato80
Details
PNG export dialog (32.86 KB, image/png)
2019-06-04 10:11 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i.kato80 2019-05-20 10:41:15 UTC
Description:
I want a scaling upped image using "Export as PNG" on Calc, but the exported image was not what I was expecting.
I tested and tested, Finally I found a Mysterious bug.


Steps to Reproduce:
1. Create a sheet.
2. In 1st cell, Type a string using English only.
3. In 2nd cell, Type a string mixing English and Japanese(日本語).
4. In 3rd cell, Type a string using Japanese(日本語) only.
5. Select between 1st and 3rd cells.
6. Choose File -> Export, then choose "PNG" type.
7. Check on "selected".
8. Click "save".
9. Change DPI and size, then click "OK".


Actual Results:
Scaling up and locating of 1st and 3rd cells are correct.
But 2nd cell is NOT scaling up and locating always.
Please see the attached images.


Expected Results:
2nd cell is scaling up and locating the same.



Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 i.kato80 2019-05-20 10:44:09 UTC
Created attachment 151527 [details]
File "Export as PNG on Calc.ods"
Comment 2 i.kato80 2019-05-20 10:45:57 UTC
Created attachment 151528 [details]
Image of 96 dpi (default) scaling.
Comment 3 i.kato80 2019-05-20 10:46:59 UTC
Created attachment 151529 [details]
Image of 120 dpi scaling.
Comment 4 i.kato80 2019-05-20 10:47:35 UTC
Created attachment 151530 [details]
Image of 150 dpi scaling.
Comment 5 i.kato80 2019-05-20 10:48:11 UTC
Created attachment 151531 [details]
Image of 192 dpi scaling.
Comment 6 i.kato80 2019-05-20 10:50:56 UTC
Comment on attachment 151528 [details]
Image of 96 dpi (default) scaling.

All cells are correct.
Comment 7 i.kato80 2019-05-20 10:51:33 UTC
Comment on attachment 151529 [details]
Image of 120 dpi scaling.

2nd cell is NOT correct.
Comment 8 i.kato80 2019-05-20 10:51:52 UTC
Comment on attachment 151530 [details]
Image of 150 dpi scaling.

2nd cell is NOT correct.
Comment 9 i.kato80 2019-05-20 10:52:07 UTC
Comment on attachment 151531 [details]
Image of 192 dpi scaling.

2nd cell is NOT correct.
Comment 10 Ming Hua 2019-06-04 09:18:04 UTC
I can reproduce this in 6.1.6 on Windows 10.

Version: 6.1.6.3 (x64)
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 2; OS: Windows 10.0; UI render: default; 
Locale: zh-CN (zh_CN); Calc: group threaded

BTW, I am not sure whether it's the language barrier or not, but changing DPI doesn't trigger the bug for me, instead changing image size does.  At least on my setup, changing DPI doesn't automatically change the image size in pixels, but changes the image size in inches while keeping the pixel size.  When I kept the image size in pixels the same, but increase the DPI to 192, I got a correct image. On the other hand, when I increased the image size in pixels but kept the 96 DPI, I could reproduce the bug.

It also happens to mixed-language cell for English and Simplified Chinese.
Comment 11 Xisco Faulí 2019-06-04 10:11:35 UTC
Created attachment 151898 [details]
PNG export dialog

This is the dialog I get when I export the selection to PNG. How can I change the DPI or size ?
Comment 12 Xisco Faulí 2019-06-04 10:12:15 UTC
Setting to NEEDINFO until the information has been provided
Comment 13 Ming Hua 2019-06-04 10:43:18 UTC
(In reply to Xisco Faulí from comment #11)
> This is the dialog I get when I export the selection to PNG. How can I
> change the DPI or size ?
To change the image size, edit the "Width" or "Height" box to a diffrent number (only one, they seem to be linked); and for DPI, edit the "Resolution" box (if you change the drop-down option after the box to "pixels/inch", you'll see the default 96 DPI (acronym of dots per inch) we've mentioned).

As I said, in my case, changing DPI will automatically change the physical size (in centimeters or inches) while keeping the pixels intact.
Comment 14 Regina Henschel 2019-06-04 11:23:11 UTC
I can reproduce it from scratch as described using Version: 6.3.0.0.alpha1+
Build ID: f6e7dbccf063767c2ac87c6460bd1004df742081
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-05-30_00:13:29
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded

Export of cell with mixed languages is wrong.
Comment 15 QA Administrators 2021-08-31 03:55:00 UTC Comment hidden (obsolete)
Comment 16 QA Administrators 2023-09-01 03:14:39 UTC Comment hidden (obsolete)
Comment 17 Stéphane Guillou (stragu) 2023-09-18 21:38:36 UTC
The issue here is not the language, but the fact that the cell has multiple lines of text.
Marking as duplicate of more recent bug 137263 as it is more clearly described there.
Thank you!

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