Bug 88132 - FILESAVE: When exporting to PNG, default units are inconsistent: inches for width/height and pixels/cm for resolution
Summary: FILESAVE: When exporting to PNG, default units are inconsistent: inches for w...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.3.5.2 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Image-DPI
  Show dependency treegraph
 
Reported: 2015-01-07 04:48 UTC by Robinson Tryon (qubit)
Modified: 2020-07-13 17:00 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robinson Tryon (qubit) 2015-01-07 04:48:18 UTC
TESTING on Ubuntu 14.04 + LO 4.3.5.2

REPRO Steps:
- (default EN_US install of LibreOffice)
- Open Draw
- (OPTIONAL) This works regardless of whether something has been drawn
- File -> Export -> (select from drop-down) PNG
- Click 'Save' button
- In the 'PNG Options' dialog, under the 'Size' heading, notice that:

Width:   8.50 Inches 
Height: 11.00

Resolution: 37 Pixels/cm

EXPECTED: All of the units of length to be the same (either inches or cm)
Comment 1 Buovjaga 2015-01-14 20:10:51 UTC
Re:bro (that's the new, cool way to say "reproduced").

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: b3b4bbaf6cbd2226b659fea7d6ae473ccf84e9dd
TinderBox: Win-x86@39, Branch:master, Time: 2015-01-12_06:13:44

Ubuntu 14.10 64-bit Version: 4.5.0.0.alpha0+
Build ID: 7201fa0dddd7dd0352f69fd2b2b64efcb361ccad
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-01-11_23:28:55
Comment 2 MM 2015-01-14 23:38:37 UTC
Not a very good idea. You can set something in the general draw options > 'unit of measurement', which you might set as points or cm. And keep the resulution as 'pixels per inch' (DPI) = inch, which might be a bit more commonly known.
Comment 3 Robinson Tryon (qubit) 2015-01-21 22:52:27 UTC
(In reply to MM from comment #2)
> And keep the
> resulution as 'pixels per inch' (DPI) = inch, which might be a bit more
> commonly known.

If DPI is really the universal standard here, then the default resolution format should not be in px/cm, right?
Comment 4 MM 2015-02-26 23:49:47 UTC
(In reply to Robinson Tryon (qubit) from comment #3)
> (In reply to MM from comment #2)
> > And keep the
> > resulution as 'pixels per inch' (DPI) = inch, which might be a bit more
> > commonly known.
> 
> If DPI is really the universal standard here, then the default resolution
> format should not be in px/cm, right?

Well my point here is that the width/height *and* resolution shouldn't necessarily have the same measurement, like you suggested.
Would be nice if the resolution (also) could be changed in the options window.
Comment 5 tommy27 2016-04-16 07:28:18 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-05-22 13:26:09 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-02-29 03:02:48 UTC Comment hidden (obsolete)
Comment 8 Julien Nabet 2020-07-10 10:24:36 UTC
On pc Debian x86-64 with LO Debian package 6.4.5 + French UI, I don't reproduce this.
I've got:
"cm"
"pixels/cm"

Could you give a try with a recent LO version?
Comment 9 Buovjaga 2020-07-11 15:45:02 UTC
(In reply to Julien Nabet from comment #8)
> On pc Debian x86-64 with LO Debian package 6.4.5 + French UI, I don't
> reproduce this.
> I've got:
> "cm"
> "pixels/cm"
> 
> Could you give a try with a recent LO version?

You have to go to Tools - Options - Draw - General: Unit of measurement: Inches

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: 57fedb272cfcad3436142dbe9eac2870e3c3e3d2
CPU threads: 8; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 9 July 2020
Comment 10 Julien Nabet 2020-07-11 17:48:35 UTC
(In reply to Buovjaga from comment #9)
> ...
> You have to go to Tools - Options - Draw - General: Unit of measurement:
> Inches
> ...
Thank you for the tip, I could reproduce this.
Comment 11 Julien Nabet 2020-07-11 18:03:47 UTC
Heiko/Xisco: I'm not an expert but I know that in France we use meters, centimeters, etc. in general but for resolution it's quite common to read "per inch".

So I'm quite agree with MM, another option may be added.
Any thoughts here?

Sophie/Jean-Baptiste: since my opinion about resolution usage in France is subjective and don't have any stats, I may be wrong here so don't hesitate to tell if you disagree :-)
Comment 12 Heiko Tietze 2020-07-13 13:01:17 UTC
In general, I'm for a per-control setting of units (see bug 72662). DPI should be by default in dots per inch but if the user wants to change this it should be easier than going into the options. 

In this particular case, given the flexible solution takes time to implement, I don't see benefit from px/cm and would hard-code it to dpi (px/in).
Comment 13 Jean-Baptiste Faure 2020-07-13 17:00:31 UTC
I do not see a problem in LO 7 rc1. Indeed Width/Height and Resolution have their own unit respectively and the user can change them independently if she is not happy with the default.

In the French UI, units are, by default, what is defined in Tools > Options > LibreOffice Draw > General for Width & Height and pixels/cm for the resolution. As I do not have reference in pixels/cm, I prefer pixels/inch for the resolution.

Best regards. JBF