https://bugs.documentfoundation.org/show_bug.cgi?id=154758

--- Comment #7 from [email protected] ---
(In reply to Stéphane Guillou (stragu) from comment #6)

> csongor, how did you manage to have 300×300 with 300 DPI in the dialog?

Well, it surprised me again how weird this behavior is but I was able to
reproduce it. 

It seems LO keeps the settings of Width and Height of this dialog throughout a
LO restart.

Here is what I am doing:

- click the attachment of this bug 
- click the Open button of the dialog to open the file
- double click on Images/Image1 in the Navigator
- press Shift+F10 to simulate Right-click on the tiny image
- either (press "m") or (select "Compress..." and press Enter). 

Now in my case, the dialog shows 100, 100, 300 and None in the Width, Height,
Resolution, Interpolation fields, respectively. I believe the Resolution
reflects the actual DPI info of the image but the other three settings remained
here from the previous time I used this dialog. Therefore, you also will see
300 in the Resolution field but some random values in the other three. 

- Change Width and Height to 300. It will change the Resolution field as well
but don't worry about it. Set Interpolation to None and click OK. 

- Close the document without saving it. Now the document changes are gone but
the changes in the dialog are kept.
- Open the file again from the web.
- Go to the Compress Image dialog. It now shows 300, 300, 300, None. The
Resolution is 300 because it is the resolution of the image in the file and the
other three values remained here from the previous usage. This is what my
original screenshot showed in the attachment.

- Don't change anyhthing just press OK. I would expect to set Height and Width
to 300 (because this was in the dialog) or not changing anything (because we
didn't modify anything) but the Actual Dimension changes to 3x3 instead. The
Width and Height show 300 becasue it is the value we used the last time. But
the actual image size is 3x3, not 300x300.

So, in a nutshell, the problem is that the Width and Height fields are not
populated with the current dimensions. Instead, the most recently used values
are shown. I believe if they would be pre-filled properly, there would be much
less confusion. 

There is some other issue as well because if the dialog opens with 300, 300,
300 and I change resolution to 200 and back to 300 then the dimensions change
from 300 to 2 and 3, not 200 and 300. So, the link between the fields doesn't
work correctly either.

I hope this helped.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to