[Digikam-devel] Experimental : image preview on main interface

Marcel Wiesweg marcel.wiesweg at gmx.de
Fri Jun 16 15:51:47 BST 2006


> It's can be complex to trying to mix loading whole image using DImg and
> only a preview. The implementation is different. Why not using a KIO slave
> like with thumb generator ?

Ok, I understand this is more a large thumbnail for raw images.
Nevertheless, if the color sidebar tab is opened, the histogram widget will 
load the real image, the same for non-raw image formats as far as I see.

So,
if we have a version of the image in the cache, we can take it (scale, convert 
to QImage if necessary)
if we load the full image anyway (non-raw images), we can load it as DImg and 
put it in the cache.

In the end, of course, we can all leave it as it is, use a kioslave, and think 
about it later in 0.9. That's fine with me.

Marcel


> > If your current solution works, i.e. it shows images properly and nothing
> > else, that's IMO a good and pragmatic solution for 0.9.[0,1].
>
> in fact with this implementation we can kill these 3 B.K.O files :
>
> http://bugs.kde.org/show_bug.cgi?id=127991
> http://bugs.kde.org/show_bug.cgi?id=128669
> http://bugs.kde.org/show_bug.cgi?id=128914
>
> The code to load image is embedded in GUI thread. It's fast with RAW file,
> but can take a while with JPEG, PNG, TIFF (QImage loading the whole image).
>



More information about the Digikam-devel mailing list