Bug 242937 - When using raw import tool, showfoto cannot export the processed image
Summary: When using raw import tool, showfoto cannot export the processed image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-RawProcessing (show other bugs)
Version: 1.3.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-27 10:44 UTC by RGBl
Modified: 2022-02-05 04:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.4.0


Attachments
Konsole output when trying to export the raw image (9.21 KB, text/plain)
2010-06-28 09:27 UTC, RGBl
Details
Showfoto with debug packages and kdebugdialog running (7.27 KB, text/plain)
2010-06-28 10:11 UTC, RGBl
Details
Screenshot with error message (419.58 KB, image/png)
2010-07-01 16:16 UTC, RGBl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RGBl 2010-06-27 10:44:54 UTC
Version:           1.3.0 (using KDE 4.3.5) 
OS:                Linux

If option "use raw import tool" is enabled on Preferences -> Configure ShowFoto -> General (I'm translating from Spanish), it is not possible to export the resulting image. An error message "Impossible to save <file_name> on <file_path>" is displayed, no matter which file or which path.

Reproducible: Always

Steps to Reproduce:
1- Enable the raw import tool
2- Open a raw file
3- Try to "save as" it as, say, png

Actual Results:  
An error message is displayed

Expected Results:  
Processed image should be exported

Digikam and kipi plugins packages are from kde:community repo on openSUSE 11.2. System is 64 bits
Comment 1 caulier.gilles 2010-06-27 23:28:41 UTC
I use eveyday Raw import tool, and i never seen this problem. Can you trace all debug statements from the console ?

Gilles Caulier
Comment 2 RGBl 2010-06-28 09:27:42 UTC
Created attachment 48390 [details]
Konsole output when trying to export the raw image

I launched showfoto from konsole with
showfoto file_name.nef
and without doing anything to the image I tried to export the raw image as png, obtaining the error message. In the attachment you can find the output.
Comment 3 caulier.gilles 2010-06-28 09:32:33 UTC
There is nothing to see in your trace.

Do you tried to export to TIFF or JPEG. It work ?

Which libpng version you use ? Go to Help/Components Info for details. Do you have more than one libpng on your computer ?

Gilles Caulier
Comment 4 RGBl 2010-06-28 09:35:10 UTC
I forgot to mention. When the "save as" fails, an empty file is created in the image folder with a name similar to dC5529.digikamtempfile.tmp
The folder is on my home directory so there is no permission problems, there are no accented characters on the path... nothing strange.
I also deleted showfoto config file and started from zero, without changes.
Comment 5 RGBl 2010-06-28 09:36:38 UTC
Yes, I tried jpeg and tiff with same results. Libpng is 1.2.39
Comment 6 caulier.gilles 2010-06-28 09:40:15 UTC
Ah. This point is important. This problem is not linked to libpng. It's temp dir/file creation problem.

Now run kdebugdialog and turn on all digiKam and Showfoto area to see all debugs statement in the console. Restart showfoto, and give me the trace.

Gilles
Comment 7 RGBl 2010-06-28 10:11:32 UTC
Created attachment 48398 [details]
Showfoto with debug packages and kdebugdialog running

I installed the debug packages for digikam (debuginfo and debugsource), run kdegubdialog and then run showfoto the same way as before.
Something I just noticed is that when I press the "save" button, the only line added to konsole output is 
QImage::scaled: Image is a null image
Comment 8 caulier.gilles 2010-06-28 10:22:26 UTC
Sound like you have a 64 bits system. Right ?

Gilles
Comment 9 Johannes Wienke 2010-06-28 10:24:03 UTC
Can you please attach the raw photo you are using to the bug, or if it is too big, upload it somewhere one a file sharing service.
Comment 10 RGBl 2010-06-28 10:55:57 UTC
This happens with every nef file, so I'll share a not-so-good shot... XD
http://www.mediafire.com/?ziqtyvajwln
Comment 11 RGBl 2010-06-28 10:57:17 UTC
Ops! I did not see your previous question... Yes, I'm on a 64 bis system
Comment 12 Johannes Wienke 2010-06-28 11:06:29 UTC
Gilles, for me this works without a problem on 64 bits.
Comment 13 RGBl 2010-07-01 16:16:07 UTC
Created attachment 48511 [details]
Screenshot with error message

This is a screenshot showing the error message.
Comment 14 caulier.gilles 2010-07-01 16:20:29 UTC
Before to save item, you need to press "Import" button on right bottom sidebar.

Gilles
Comment 15 caulier.gilles 2010-07-01 18:53:32 UTC
Note : it's abnormal to see all menu item enabled when Raw Import Tool is loaded. This is only reproducible with showfoto, not digiKam image editor.

It's relevant to all toggleActions(true) in showfoto.cpp. This behavior is valid if you load an image directly, without to pass by a tool as raw import. I will fix it.

Gilles Caulier
Comment 16 RGBl 2010-07-01 21:20:53 UTC
Thanks for the clarifications, now I understand how this work. But I must say that the "Import button" is somewhat misleading: I'm SEEING the image inside ShowFoto, and the changes I make are applied to the preview when I click "Update": as a new user, how can I guess I need to import the image AGAIN? I considered the "Import button" as something I should explore once the "Save as" problem was solved...
Also, the error message was not very helpful.
But well, now it is working! Thanks for the patience and sorry for not exploring deep enough before submitting the bug report.
Comment 17 caulier.gilles 2010-07-02 12:38:13 UTC
SVN commit 1145258 by cgilles:

Handle menu actions properly in showfoto when an image is loaded, particuliary when Raw Import tool is used.
BUGS: 242937


 M  +12 -7     showfoto/showfoto.cpp  
 M  +4 -3      showfoto/showfoto.h  
 M  +1 -1      utilities/imageeditor/editor/editorwindow.h  


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