Bug 220122

Summary: [digikam] View 100% doesn't show real size (1:1)
Product: [Applications] digikam Reporter: Mark Purcell <msp>
Component: Preview-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 1.1.0
Sentry Crash Report:
Attachments: same size
Digikam View/ Edit mode both at 100% scaling
Test image for scaling
Both view and preview mode at 100%
Are you sure. Look mine...

Description Mark Purcell 2009-12-26 07:09:29 UTC
Version:           1.0.0 (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-trunk-686

http://bugs.debian.org/562197

From: Ingo Juergensmann <ij@2009.bluespice.org>
To: submit@bugs.debian.org
Subject: [digikam] View 100% doesn't show real size (1:1)
Date: Wed, 23 Dec 2009 19:50:16 +0100

Package: digikam
Version: 2:1.0.0-1
Severity: normal

--- Please enter the report below this line. ---

Hi!

I'm using digikam on unstable and have experienced for some time now
that choosing "View -> Zoom to 100%" doesn't show the real size of the
picture, i.e. it is still scaled down.
When comparing the very same picture (by choosing "Open with..." with
e.g. Okular the effect is obvious.
See
http://blog.windfluechter.net/uploads/screenshots/Digikam_100percent-View.png
for an example picture or
http://blog.windfluechter.net/index.php?/archives/849-Digikams-100%25-view.html
for the matching blog entry of mine.

In both apps (digikam & okular) it's the same JPEG picture and scale
level (100%).

Regards,
Ingo


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.31-1-amd64

Debian Release: squeeze/sid
  500 unstable        www.debian-multimedia.org
  500 unstable        ftp2.de.debian.org

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-==============
kdebase-runtime        (>= 4:4.3.0) | 4:4.3.4-2
kdelibs5               (>= 4:4.3.4) | 4:4.3.4-1
kdepimlibs5            (>= 4:4.3.4) | 4:4.3.4-1
libc6                      (>= 2.3) | 2.10.2-2
libgcc1                (>= 1:4.1.1) | 1:4.4.2-6
libglib2.0-0            (>= 2.12.0) | 2.22.3-1
libgphoto2-2             (>= 2.4.3) | 2.4.6-1
libgphoto2-port0         (>= 2.4.3) | 2.4.6-1
libjasper1             (>= 1.900.1) | 1.900.1-6.1
libjpeg62                           | 6b-15
libkdcraw7             (>= 4:4.3.4) | 4:4.3.4-1
libkexiv2-7            (>= 4:4.3.4) | 4:4.3.4-1
libkipi6               (>= 4:4.3.4) | 4:4.3.4-1
liblcms1                (>= 1.15-1) | 1.18.dfsg-1
liblensfun0              (>= 0.2.3) | 0.2.4-1
liblqr-1-0               (>= 0.4.0) | 0.4.1-1
libmarble4             (>= 4:4.3.4) | 4:4.3.4-1
libphonon4             (>= 4:4.2.0) | 4:4.5.3-4
libpng12-0            (>= 1.2.13-4) | 1.2.41-1
libqt4-dbus            (>= 4:4.5.3) | 4:4.5.3-4
libqt4-network         (>= 4:4.5.3) | 4:4.5.3-4
libqt4-qt3support      (>= 4:4.5.3) | 4:4.5.3-4
libqt4-sql             (>= 4:4.5.3) | 4:4.5.3-4
libqt4-svg             (>= 4:4.5.3) | 4:4.5.3-4
libqt4-xml             (>= 4:4.5.3) | 4:4.5.3-4
libqtcore4             (>= 4:4.5.3) | 4:4.5.3-4
libqtgui4              (>= 4:4.5.3) | 4:4.5.3-4
libsoprano4             (>= 2.1.67) | 2.3.1+dfsg.1-1
libstdc++6               (>= 4.1.1) | 4.4.2-6
libtiff4                            | 3.9.2-1
libx11-6                     (>= 0) | 2:1.3.2-1
libxau6                             | 1:1.0.5-1
libxdmcp6                           | 1:1.0.3-1
phonon                 (>= 4:4.5.2) | 4:4.5.3-4
zlib1g                 (>= 1:1.1.4) | 1:1.2.3.3.dfsg-15
libqt4-sql-sqlite                   | 4:4.5.3-4


Recommends        (Version) | Installed
===========================-+-===========
www-browser                 |
kipi-plugins                | 1.0.0-1


Suggests         (Version) | Installed
==========================-+-===========
digikam-doc                |





-- 
Ciao...            //      Fon: 0381-2744150
      Ingo       \X/       http://blog.windfluechter.net

gpg pubkey: http://www.juergensmann.de/ij_public_key.asc
Comment 1 Johannes Wienke 2009-12-26 10:40:08 UTC
Created attachment 39348 [details]
same size

Hm, I cannot reproduce this (see the attachment). Are you doing anything special? Please provide a detailed description how you achieve this and if possible attach an image that shows this problem.
Comment 2 Mark Purcell 2009-12-26 12:27:06 UTC
Created attachment 39349 [details]
Digikam View/ Edit mode both at 100% scaling

This screenshot shows digikam in View & Edit mode both scaled to 100%, as you can see the pictures are different sizes.
Comment 3 caulier.gilles 2009-12-26 12:39:06 UTC
Mark,

In preview Mode (F3), move mouse over zoom slider from status bar and look zoom factor display as tooltip. It's 100%. I'm sure no, because image is scaled to fit size.

Gilles Caulier
Comment 4 Mark Purcell 2009-12-26 12:41:44 UTC
Created attachment 39350 [details]
Test image for scaling
Comment 5 Mark Purcell 2009-12-26 12:45:55 UTC
Created attachment 39351 [details]
Both view and preview mode at 100%

I have now placed my mouse over slider to demonstrate that both view and edit mode are at 100%.
Comment 6 caulier.gilles 2009-12-26 13:01:51 UTC
Created attachment 39352 [details]
Are you sure. Look mine...

Of course, i use "Lod Embeded Preview Load Full Image" from Album View settings page (:=)))

Preview is... _preview_. Without this option truned on, al downscaled image size is loaded from JPEG (feature from libjpeg) to reduce time loading...

Gilles
Comment 7 Mark Purcell 2009-12-27 10:23:10 UTC
Thanks Gilles,

You have identified the issue.

The option _en "Album View:Misc Options:Embedded previews loads full-sized images."

When selected loads images at their full size for preview (ie 1:1), however when not selected the previews are at a reduced size.

Thus 100% is only correct if the option is selected, otherwise the 100% scaling is incorrect.

Could I suggest that this is confusing for the end user, and that many users would not be aware of this option, which is off by default to give optimal performance.

Could I recommend to close this report that either;

1. The option be switched on by default (thus giving a correct 100% for preview), or

2. The preview mode not report incorrectly 100% scaling.

Mark
Comment 8 caulier.gilles 2009-12-27 10:33:54 UTC
Well, no... I have another way to fix it

Andy as started a branch to port preview view to pure Qt4. port is done. I'm waiting to backport this code in trunk.

When it's done, nothing will change for end users (visualy). I would to use QGraphicsView with preview to show more visual information over preview for end user, as "reduced image size" for JPEG or "embeded JPEG from RAW" for RAW file.

Like this, there will be no confusion.

About zoom selector from status bar, perhaps we can add a coefficient about reduced ratio of image against original size, but i'm not sure if we can get it properly with all RAW file. Also, with JPEG, the reduced ratio is taken from an iteration loop with depend of conditional test from libjpeg if i remember. So, it's not easy.

I more simple to display a short text over preview i think...

Gilles
Comment 9 caulier.gilles 2010-01-22 15:58:16 UTC
SVN commit 1078655 by cgilles:

with icon view preview mode and light table, show an annotation over preview area when reduced image is loaded instead full image size
BUGS: 220122


 M  +29 -0     digikam/imagepreviewview.cpp  
 M  +4 -3      digikam/imagepreviewview.h  
 M  +26 -1     libs/widgets/common/previewwidget.cpp  
 M  +1 -0      libs/widgets/common/previewwidget.h  
 M  +0 -21     utilities/imageeditor/widgets/imageregionwidget.cpp  
 M  +0 -1      utilities/imageeditor/widgets/imageregionwidget.h  
 M  +46 -10    utilities/lighttable/lighttablepreview.cpp  
 M  +2 -1      utilities/lighttable/lighttablepreview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1078655