Bug 611983

Summary: digiKam,gwenview: Failed to rotate image
Product: [openSUSE] openSUSE 11.3 Reporter: David Bailey <dr>
Component: KDE4 ApplicationsAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: forgotten_kHYb7eJGnH, forgotten_Ku1lZ_yaEZ, suse, wstephenson
Version: Milestone 7   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.3   
Whiteboard: .
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Bailey 2010-06-06 00:05:59 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100513 SUSE/3.6.4-1.11 Firefox/3.6.4

When trying to rotate images from the thumbnail or batch process a rotation in digiKam, digiKam returns "Failed to rotate image" and the console returns the following:

digikam(1220)/kdecore (KSycoca): Trying to open ksycoca from  "/var/tmp/kdecache-username/ksycoca4"
Time elapsed: 55 ms
Time elapsed: 11 ms
Model: Time elapsed: 190 ms
TextureColorizer: Time elapsed: 152 ms
Time elapsed: 10 ms
Time elapsed: 11 ms
Model: Time elapsed: 35 ms
digikam(1220)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail.
digikam(1220)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail.
digikam(1220)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail.
digikam(1220)/kdecore (trader): query for mimeType  "image/jpeg" ,  "Application"  : returning  4  offers
QFile::setFileName: File (/tmp/kde-username/digikamTJ1220kipiplugin-rotate.JPG) is already opened
QFile::setFileName: File (/tmp/kde-username/digikamhX1220kipiplugin-rotate.JPG) is already opened
digikam(1220)/kdecore (trader): query for mimeType  "image/jpeg" ,  "Application"  : returning  4  offers
digikam(1220)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/username/Documents/DCIM/106PENTX/.digikam-exifrotate-1220.jpg"

Reproducible: Always

Steps to Reproduce:
1. attempt to rotate image in digiKam
2. digiKam reports error



Expected Results:  
digiKam should perform a lossless rotate of the JPEG image.

Packages
digikam-1.2.0-2.1.i586
kipi-plugins-1.2.0-5.1.i586
kipi-plugins-acquireimage-1.2.0-5.1.i586
libkipi7-4.4.3-2.1.i586

Kernel
Linux jr.baileynet.org 2.6.34-8-default #1 SMP 2010-05-17 17:30:24 +0200 i686 i686 i386 GNU/Linux

Upstream bug report
Not certain, but it may be related to this, although M7 already includes kipi-plugins 1.2.0.
https://bugs.kde.org/show_bug.cgi?id=228483
Comment 1 Forgotten User kHYb7eJGnH 2010-07-01 09:40:22 UTC
Fixed in kipi 1.3.0

Thanks
Comment 2 Will Stephenson 2010-07-20 13:09:08 UTC
Well spotted, but 11.3 doesn't have kipi-plugins 1.3.0 and there is a fix for 1.2.0, so I'll do an online update for this.

Related bko#226838 is a dupe of 228483.
Comment 3 Will Stephenson 2010-07-20 13:10:44 UTC
*** Bug 623487 has been marked as a duplicate of this bug. ***
Comment 4 Will Stephenson 2010-07-20 13:27:17 UTC
Due to incompatibility between kipi-plugins 1.2.0 code and libjpeg8 as shipped
in 11.3.  

I'd like to online update this, Maintenance?
Comment 5 Will Stephenson 2010-07-20 13:40:53 UTC
Provisional update submitted to KDE:Distro:Stable fixes this.  However, I'm not sure how to verify that Lynn's part of the report is fixed. 

The original report was
"
Steps to Reproduce:
1.click on a folder containing jpeg's
2.click a jpeg
3.open with gwenview
"

There seems to be a step missing here.

Lynn, were you manually rotating images using the Rotate Left/Right actions?  

Where did the output say "failed to rotate image" - on the console?

I don't see any option in Gwenview to rotate according to Exif and save the changed file on open/import.
Comment 6 Leonardo Chiquitto 2010-07-20 13:49:54 UTC
If the patch submitted to KDE:Distro:Stable/kipi-plugins is enough to fix this, I think we should do the update, +1.
Comment 7 Swamp Workflow Management 2010-07-20 15:39:05 UTC
The SWAMPID for this issue is 34614.
This issue was rated as low.
Please submit fixed packages as soon as possible.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/34614
Comment 8 Christian Dengler 2010-07-20 15:39:53 UTC
Ok. Update process started. Be so kind and submit the sources against update:test and fill out a patchinfo.
Comment 9 Will Stephenson 2010-07-21 13:05:56 UTC
Submitted.

Re #5's question to Lynn, I checked with the Gwenview author and it has no rotate and save on import, so Lynn's report must ommit the 'manually click rotate' at 4.
Comment 10 Swamp Workflow Management 2010-07-29 15:13:20 UTC
Update released for: kipi-plugins, kipi-plugins-acquireimage, kipi-plugins-acquireimage-debuginfo, kipi-plugins-debuginfo, kipi-plugins-debugsource, kipi-plugins-doc, kipi-plugins-lang
Products:
openSUSE 11.3 (debug, i586, x86_64)
Comment 11 Thomas Leineweber 2010-08-07 18:01:06 UTC
Unfortunately, my digikam still refuses to rotate images with the same error message:

QFile::setFileName: File (/tmp/kde-thomas/digikamJ14991kipiplugin-rotate.jpg) is already opened

The following RPMs are installed:

libjpeg6-6.2.0-3.1.i586
jpeg-8.0.1-2.1.1.i586
libjpeg8-8.0.1-2.1.1.i586

digikam-lang-1.2.0-3.4.noarch
digikam-1.2.0-3.4.i586

kipi-plugins-acquireimage-1.2.0-6.1.1.i586
kipi-plugins-doc-1.2.0-6.1.1.i586
kipi-plugins-lang-1.2.0-6.1.1.noarch
libkipi7-4.4.4-1.4.i586
kipi-plugins-1.2.0-6.1.1.i586

If you need further information, please ask.
Comment 12 Bernhard Wiedemann 2016-04-15 11:50:25 UTC
This is an autogenerated message for OBS integration:
This bug (611983) was mentioned in
https://build.opensuse.org/request/show/43613 11.3:Test / kipi-plugins