Bug 150383 - CANVAS : add new fit image options
Summary: CANVAS : add new fit image options
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: ImageEditor-Canvas (show other bugs)
Version: 0.9.2
Platform: Slackware Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-01 20:28 UTC by Michał Kosmulski
Modified: 2023-05-15 04:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Kosmulski 2007-10-01 20:29:00 UTC
Version:           0.9.2 (using KDE KDE 3.5.7)
Installed from:    Slackware Packages

It would be nice if the Digikam Image Editor (which I usually use as an image viewer) had, in addition to "fit to window", an option in the View menu that would allow for adjustable letterboxing ( http://en.wikipedia.org/wiki/Letterbox ). This would be useful for panorama-style images with a high aspect ratio, where sometimes the preferred way of viewing would be to scale the image so that the shorter side is scaled to window size, not the longer one. The best would be an adjustable option, like the one found in mplayer, where one can adjust a slider between 0 (meaning "scale to longer side") up to 1 (meaning "scale to shorter side"). If the two extreme values were available directly through the menu and some keyboard shortcuts, viewing "thin and long" images would become much more convenient.

Simple ASCII art to ilustrate the point:

Sample image (use a proportional font):
+-------------------+
|                   |
|                   |
+-------------------+

Current "fit to window", scaling to the longer side:
+----------+
+----------+
+----------+
+----------+

Proposed "scale to shorter side" option, which combined with middle-button-dragging would allow for easy viewing and pannning of the panorama:

+-----+---------+---+
|     |         |   |
|     |         |   |
+-----+---------+---+
Comment 1 Mikolaj Machowski 2007-10-01 21:23:26 UTC
As I understand you want four scaling options:

- 1:1
- Fit to window 
- Fit to width
- Fit to height

Comparing to present two:

- 1:1
- Fit to window

IMO this is sound proposition.
Comment 2 caulier.gilles 2023-05-12 13:45:37 UTC
Maik,

If i'm not too wrong, this file is the same wish than one recently closed about the preview zoom to fit support, but for image editor.

Gilles
Comment 3 Maik Qualmann 2023-05-12 16:22:28 UTC
Hi Gilles,

The new setting is only applied to the preview, not to the image editor. The image editor fit to window tool button has an additional toggle function, back to the last zoom level. I'm not sure if it really makes sense in the image editor.

Maik
Comment 4 caulier.gilles 2023-05-15 04:19:13 UTC
Hi MAik,

Right this is not to implement a new automatic Fit to Window option as in Preview. I read too fast the description.

Gilles