[Digikam-devel] [Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Stefan Hühne xeno at huehne-domain.de
Sun Oct 18 11:11:50 BST 2009


https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #2 from Stefan Hühne <xeno huehne-domain de>  2009-10-18 12:11:49 ---
No. This is my experience.
Using 2dim-resize to 10000*500 on the above examples I get:
- the 1st example results in a 10000*500 black canvas with the original image 
in the center scaled to 500*500. That's reasonable but not what I would like.
- the 2nd example results in a 10000*500 black canvas with the original image 
in the center scaled to 500*50 !!. What may be the logic behind this?
- the 3rd example results in a 10000*500 black canvas with the original image 
in the center scaled to 250*500. That's reasonable again.But still not what I
would like.

Using 1dim-resize to 500 on the above examples I get:
- the 1st example results in a 500*500 scaled image. 
- the 2nd example results in a 500*50 scaled image. 
- the 3rd example results in a 250*500 scaled image.
This is also not what I need.

I would like something like this (aspect ratio = width/height)

if (destination aspect ratio >= source aspect ratio)
   scale factor = destination height / source height
else
   scale factor = destination width / source width

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Digikam-devel mailing list