Bug 89720 - batch convert from tif to jpg creates thumbnail and main jpeg with wrong names.
Summary: batch convert from tif to jpg creates thumbnail and main jpeg with wrong names.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-Convert (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-17 19:09 UTC by Richard Taylor
Modified: 2022-01-19 14:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Taylor 2004-09-17 19:09:03 UTC
Version:           0.1.0-cvs (using KDE 3.3.0, Gentoo)
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.8-gentoo-r3

When batch converting from tif images to jpeg images the conversion produces two jpeg files. filename.jpg.0 and filename.jpg.1. The .0 file is the correct image and the .1 file is a thumbnail. 

Because the new jpeg images do not have the correct final extension to the filename digikam does not show them, which is rather confusing.

I guess that the conversion is picking up the thumbnail that is embedded in the tif by the camera.
Comment 1 Richard Taylor 2004-09-21 23:52:11 UTC
The problem is because of the way that ImageMagik convert handles images with embedded thumbnails. The following simple patch fixes the problem for me. I guess that someone else should check that it does not break other peoples conversions.

diff -u -3 -p -r1.18 convertimagesdialog.cpp
--- kipi-plugins/batchprocessimages/convertimagesdialog.cpp     21 Sep 2004 10:33:15 -0000  1.18
+++ kipi-plugins/batchprocessimages/convertimagesdialog.cpp     21 Sep 2004 21:49:33 -0000
@@ -323,7 +323,7 @@ QString ConvertImagesDialog::makeProcess

     *proc << "-verbose";

-    *proc << item->pathSrc();
+    *proc << item->pathSrc() + "[0]";

     if ( !albumDest.isNull() )   // No preview mode !
        {


Richard
Comment 2 caulier.gilles 2004-09-22 10:43:14 UTC
This patch fix the problem. Thanks
I have also patched all makeProcess() methods for all others BatchProcessImages plugins.