Bug 90861 - Scaling pictures
Summary: Scaling pictures
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 13:40 UTC by john
Modified: 2015-05-28 12:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
picture 1 will lead you to the problem - that doen't exit in picture 2 (145.44 KB, application/vnd.oasis.opendocument.text)
2015-04-25 22:35 UTC, john
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2015-04-25 13:40:27 UTC
Hi!

JPG-pictures with the attribute 1 ppi cannot be scaled correctly within a text-document. - This is true even when pressing the standard button, showing a 81 ppi attribute, as this probable doesn't alter the picture attribute factually.

You get this kind of pictures (1 pp1) when copying internet pages to a text document.

Thank you
John

2015/4/25
Comment 1 raal 2015-04-25 17:04:42 UTC
Hello John,

Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 2 john 2015-04-25 22:35:14 UTC
Created attachment 115102 [details]
picture 1 will lead you to the problem - that doen't exit in picture 2
Comment 3 raal 2015-04-26 07:06:46 UTC
I can change size of the picture without problem. Please provide a clearer set of step-by-step instructions on how to reproduce the problem.
Comment 4 john 2015-04-26 10:47:51 UTC
please try:
1) click test-picture-1 (left) > (right) picture / Bild > tab 6 (cut / Zuschneiden): 
   keep width-hight relationship (Zuschneiden: Skalierung beibehalten)(!)
   a) Scale (Skalierung) - width 1% / hight 1 % > shouldn't it read 100 % / 100 % 
      so you could scale it up & down?
   b) Size (Bildgroesse) - width 17 cm / hight 11 cm > 
      when changing width to 10 cm the hight remains at 11 cm, 
      while it should change automatically to 6,7 cm

2) please try the same procedures with test-picture-2 and might see the difference
   of handling 1-ppi-pictures and nn-ppi-pictures (say nn=81)

Thank you!
John
Comment 5 raal 2015-04-27 12:14:31 UTC
The size of picture is 1549,4 x 1003,3 cm

15,49 cm = 1%
11,01 cm = 1,1%
Comment 6 john 2015-04-27 12:48:18 UTC
Hi!
What are you trying to say?
How do I get 0,5 % ?
Why does the side relation change by changing one side only, while it is marked to remain the same?

Regards John.
Comment 7 raal 2015-04-27 13:19:14 UTC
(In reply to john from comment #4)
> please try:
> 1) click test-picture-1 (left) > (right) picture / Bild > tab 6 (cut /
> Zuschneiden): 
>    keep width-hight relationship (Zuschneiden: Skalierung beibehalten)(!)
>    a) Scale (Skalierung) - width 1% / hight 1 % > shouldn't it read 100 % /
> 100 % 
>       so you could scale it up & down?

	  The size of picture is 1549,4 x 1003,3 cm
		15,49 cm = 1%
		11,01 cm = 1,1%
		I think you cannot load 1549,4 x 1003,3 cm (100%) on A4 (210x297 mm)
		

>    b) Size (Bildgroesse) - width 17 cm / hight 11 cm > 
>       when changing width to 10 cm the hight remains at 11 cm, 
>       while it should change automatically to 6,7 cm

	  Really should? I doesn't see it written in help. Was it worked in previous version? 
	  https://help.libreoffice.org/Common/Crop

> 
> 2) please try the same procedures with test-picture-2 and might see the
> difference
>    of handling 1-ppi-pictures and nn-ppi-pictures (say nn=81)

   I doesn't see a difference. On second picture is  scale 100% because size is 13.55cm x 10.16 cm.
   When I change width, then height is not changing

How do I get 0,5 % ?
You cannot, whole numbers only.

Setting unconfirmed, I have not more questions.

> 
> Thank you!
> John
Comment 8 Gordo 2015-05-28 12:58:32 UTC
You can either use another tool (paint.net) or Draw to change the ppi/dpi.  In Draw it is compress image and then you can save it and bring it into Writer where you can now scale it.

Windows Vista 64
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16

Set to RESOLVED WORKSFORME.