Bug 82239 - Graphics handling on scaling was changed
Summary: Graphics handling on scaling was changed
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: Other All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 09:14 UTC by thorsten.brandau
Modified: 2014-08-20 15:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Testfile for Picture scaling (2.90 MB, application/vnd.oasis.opendocument.text)
2014-08-18 14:27 UTC, thorsten.brandau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thorsten.brandau 2014-08-06 09:14:02 UTC
In versions up to 4.2. I could label a graphics and when scaling the frame, the graphics would scale (proportionally) with it. Starting with 4.3. only the frame gets scaled and the graphics has to be scaled manually.
Additionally, I could until 4.2. "pickup" a graphics anywhere and by pressing shift, it was scaled proportionally. Now, I have to pick it up at a corner as shift does not have any effect anymore.

This is an extremely annoying change of behaviour, as it takes a lot longer to place and scale graphics now.

cheers.
Comment 1 Yousuf Philips (jay) (retired) 2014-08-06 10:16:53 UTC
Hi Thorsten,

Thank you for reporting this bug. If you'd like to link the graphics to the frame, simple go into the frame properties and under the 'type' tab, check the 2 'relative to' checkboxes and it will work as expected. 

About the scaling, the new behaviour is that it scales proportionally by default without the need for shift and the use of shift is to scale it unproportionally.
Comment 2 Adolfo Jayme Barrientos 2014-08-08 15:59:15 UTC
Well, the behavior change was requested *and* mentioned in the release notes: https://wiki.documentfoundation.org/ReleaseNotes/4.3#Proportion_image_scaling
Comment 3 thorsten.brandau 2014-08-08 16:14:58 UTC
@adolfo: Guess what, not everybody is happy with these changes after using a software for many years and getting used to its behaviour for good or bad...

I believe it is always a good idea to have options, just as you can set in the options of libreoffice "old" or "compatible" behaviour for those people that are too old or lazy to learn new ways regulary, but still are looking for a more stable, bug free and yes, maybe even more comfortable version.

@Jay thanks for the hint. I cannot really follow how this should be "identical" because before the ratio of the picture stayed, not I can scale the frame proportional, but as I have annotations, the graphics is deformed anytime, whatever options I choose. This is making it unsuable, as I have to scale the graphics, but cannot (as earlier) resize the frame so small to fit. As soon as the frame gets smaller than the graphics, the graphics is resized, but unproportional. This should be a bug in my opinion...

cheers
Comment 4 Yousuf Philips (jay) (retired) 2014-08-15 09:37:19 UTC
Hi Thorsten,

Unfortunately, i couldnt follow what you meant in your last comment. Could you send in a document showing this behaviour or provided some instruction steps so that i can investigate it more.
Comment 5 Robinson Tryon (qubit) 2014-08-17 01:56:22 UTC
(In reply to comment #4)
> Could
> you send in a document showing this behaviour or provided some instruction
> steps so that i can investigate it more.

We need a test document, so setting status -> NEEDINFO.

Thorsten, please change the status back to 'UNCONFIRMED' after you attach a document exhibiting this behavior.

Thanks,
--R
Comment 6 thorsten.brandau 2014-08-18 14:27:30 UTC
Created attachment 104829 [details]
Testfile for Picture scaling
Comment 7 thorsten.brandau 2014-08-18 14:30:40 UTC
Please find a test file attached for the scaling issue.
When a picture is inserted and a text is added (autmoatically adding a frame), the frame does not scale the picture when enlarging, when reducing the size, it just cuts off the picture.
Most of the time it tends however to rescale the picture, but not keeping the aspect ratio (in my older documents it behaves like that).
When I use "relative to to paragraph" in the picture properties as recommended, the result is a very wide, very low scaled anything.

In former versions the scaling with a frame worked perfectly (besides the many crashes), but at last it worked.
Comment 8 Yousuf Philips (jay) (retired) 2014-08-19 16:52:57 UTC
Hi Thorsten,

Checked your test document and if i set "relative to paragraph" in images 1 and 3, it works fine when resizing the frame.

Regarding image 2, going into its properties, i see the height is set at 1%, which is why the image is flat horizontally. I tried to reproduce this behaviour but wasnt able to with the instructions under the image. Can you provide exact steps to reproduce this one.
Comment 9 thorsten.brandau 2014-08-19 16:58:55 UTC
@Jay: The point is: No it does not work here.
Second: I did not set the size, I just changed the settings. Then this happened. Very reproducible here. 

The steps are given under each image and are exactly what was necessary to reproduce.
Comment 10 Yousuf Philips (jay) (retired) 2014-08-19 19:41:44 UTC
Hi Thorsten,

I tried again to see if i could produce the behaviour of image 2 on both windows and linux and unfortunately couldnt. Could you possibly record a screencast of this behaviour using software including camstudio or screencast-o-matic.com.
Comment 11 thorsten.brandau 2014-08-20 07:38:41 UTC
@jay: sorry, I am not allowed to install any software on my computers. I can however reproduce the bug both with Win7x64 Pro as well as with Win7x64 Home Premium on a different PC.

I tried the same with a clean user folder with identical results.
Comment 12 Yousuf Philips (jay) (retired) 2014-08-20 09:40:15 UTC
@Thorsten: screencast-o-matic.com doesnt require that you install any software. :)
Comment 13 thorsten.brandau 2014-08-20 10:27:36 UTC
Great. After kind of repeating the documented steps for about 50 times yesterday, today the graphics is not rescaled when bound to paragraph. I'm lovin it.

Anyways, please see some of the other behaviour, also that the graphics does not scale with the frame proportional to its size.

File is here:
https://app.box.com/s/l80hvdecigx6p5yo2ee2

Cheers
Comment 14 Yousuf Philips (jay) (retired) 2014-08-20 14:31:47 UTC
Thanks for the screencast Thorsten. I was mistaken about checking both the relative to checkboxes, you should only check the width one if you want it to work like 4.2. The screencast didnt show how to do images 1 and 2 from your example file though.
Comment 15 thorsten.brandau 2014-08-20 15:09:46 UTC
@jay: Picture 1 was made simply as showed by reducing the size of the frame. The picture size stays and you get the "second" frame if the frame is smaller then the picture.

You are right, when using only relative to width it works, thanks.

As said, I cannot reproduce Picture 2 any more (which really ticks me off). Picture 1 is also in that form not reproducible, however, as seen in the video you picture gets bigger than the frame it is in, which is a similar behaviour.

I suspect actually with most of my LibreOffice problems serious memory management difficulties. 

I could reproduce some of the behaviour when I set the "Options -> Memory" settings to maximum values (I have plenty of RAM). Then the problem of picture 2 occurs under the following circumstances:
- Insert picture
- Scale picture (just a little bit)
- Add description with frame
- Click picture (usually "picture" shows sometimes on the first right click, sometimes I have to click something else and then redo)
- Type->Scale->Relativ to, BUT there is an additional buttom "Automatic" which is selected but does not show always. IF THIS BUTTON is selected, picture 2 happens.

As soon as I start the screen recording, I don't get this creepy button anymore...
Comment 16 Yousuf Philips (jay) (retired) 2014-08-20 15:53:35 UTC
Glad that you were able to get it working properly now.

Yes the image will spill over the frame size if the image is larger than its size.

I tried reproducing picture 2 by using the memory option but never got the 'Automatic' button. :(