[Digikam-devel] [Proposed solution] zoom factor error

Unai Garro ugarro at gmail.com
Sun Aug 3 22:14:23 BST 2008


I've done (still baking it) a small hack to show the zoom numbers in the 
main view, always referred to the real image size (not the previewed 
size). By default digikam uses preview images, and showing smaller 
images than the actual ones at 100% confuses the user (or at least 
confuses me). for more info, I provided some screenshots here: 
http://mail.kde.org/pipermail/digikam-devel/2008-August/020456.html

If the image zoom is larger than 1.0, ie, if it's larger than the 
preview size, it also shows the label "magnified".  Then the user knows 
he's not seeing the real image quality

Thus, if you enable showing scaled down images, and then select 100%, 
you'll see the preview image same size as the orignal image, but a label 
saying "magnified" will let you know there's a zooming going on, and 
thus there's quality diminishing.  The label dissappears if the zoom 
level is reduced. The next screenshot shows how it works:
http://www.ugarro.com/tmp/proposedSolution.png

Please let me know if you like the way of fixing or not.

Also, I'd love if you let me know where you'd prefer this code to go. 
Right now I'm hacking the code right into digikamapp, with:

    int realZoom=(int)(zoom*100.0*factor);
    d->statusZoomBar->setZoomSliderValue((int)size);
    d->statusZoomBar->setZoomTrackerText(zoom<=1?i18n("zoom: %1%", 
realZoom):i18n("zoom: %1% (magnified)", realZoom));

But it may not be the place to do this right. So I'd appreciate any 
input on this before I do any further code in code that will not be used.

Best regards,

Unai Garro




More information about the Digikam-devel mailing list