Bug 271735

Summary: HTML export of RAW images fails
Product: [Applications] digikam Reporter: Kevin Gilbert <kmg952>
Component: Plugin-Generic-HTMLGalleryAssignee: Digikam Developers <digikam-bugs-null>
Severity: normal CC: kmg952
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0

Description Kevin Gilbert 2011-04-26 01:05:55 UTC
Version:           1.9.0 (using KDE 4.6.2) 
OS:                Linux

Cannot export Canon RAW images to HTML using the latest Digikam / Kipiplugins. The error is:

"Error loading image <path>"

Plugin works for JPG files.

Reproducible: Always

Steps to Reproduce:
Attempt to export a RAW image as HTML

OS: Linux (x86_64) release
Compiler: gcc
Comment 1 Kevin Gilbert 2011-05-31 04:03:15 UTC
I have done some checking and I think that this is a change in Qt from qt-4.7.1-17 to qt-4.7.2-8. I believe that the call statement

	if( !originalImage.loadFromData( imageData ))

in the module imagegenerationfunctor.cpp fails. I have extracted the code from that module and run it under both versions of Qt - it works in the older version and fails in the newer.
Comment 2 caulier.gilles 2011-06-08 15:10:26 UTC
Git commit 1959b9322e59bae15b24928fca9da6d985212019 by Gilles Caulier.
Committed on 08/06/2011 at 15:09.
Pushed by cgilles into branch 'master'.

support RAW image for HTML export
BUGS: 271735

M  +1    -1    htmlexport/CMakeLists.txt     
M  +127  -108  htmlexport/imagegenerationfunctor.cpp     

Comment 3 Kevin Gilbert 2011-06-08 23:35:38 UTC
Thanks for the fix - it's *VERY* much appreciated!!!!
Comment 4 Kevin Gilbert 2011-06-15 11:35:46 UTC
Just applied the patch to the Fedora 15 kipi-plugins-1.9.0-1.fc15.src.rpm . I can confirm that the patch works!!!! :) :) :)

If I ever meet you Gilles, it's my shout!!!!!!!!