[Digikam-devel] [Bug 274947] New: Auto-rotate/flip image does not work at import

Peter Albrecht px79 at crazymonkeys.de
Sat Jun 4 23:40:34 CEST 2011


https://bugs.kde.org/show_bug.cgi?id=274947

           Summary: Auto-rotate/flip image does not work at import
           Product: digikam
           Version: 1.9.0
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Import
        AssignedTo: digikam-devel at kde.org
        ReportedBy: px79 at crazymonkeys.de


Version:           1.9.0 (using KDE 4.6.2) 
OS:                Linux

Autorotate of images in portrait format does not work / breaks thumbnail.

Reproducible: Always

Steps to Reproduce:
1. take a few new portrait/landscape pictures
2. plugin your sd-card and select "Download Photos with digikam" in KDE
3. in "Importer Window" make shure "Settings: Auto-rotate/flip image" is
selected
4. select your images and hit "Download Selected"
5. close "Importer Window" after download is finished
6. look at your pictures in album view

In my exampel I have:
  - img_1122.jpg - a landscape picture
  - img_1123.jpg - a portrait picture
  - img_1124.jpg - a portrait picture

Actual Results:  
  - img_1122.jpg: 
      - album view: orientation in thumbnail ok
      - Image Editor orientation ok

  - img_1123.jpg:
      - album view: thumbnail broken (orientation korrekt but only 10 pixel
wide; the leftmost 10 pixels; height is ok)
      - Image Editor: requires one "Rotate Left" to be correct (looks like no
auto-rotation took place)

  - img_1124.jpg:
      - album view: thumbnail ok (orientation and content)
      - Image Editor: requires one "Rotate Left" to be correct (looks like no
auto-rotation took place)

Expected Results:  
  - img_1122.jpg: thumbnail and Image Editor should display landscape format
  - img_1123.jpg: thumbnail and Image Editor should display portrait format
  - img_1124.jpg: thumbnail and Image Editor should display portrait format

--- Additional Information:

Clicking "Download Selected" in "Import Window" prints the following debug-info
to STDOUT:
-------------------- 8< --------------------
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Downloading:  "IMG_1122.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1122.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Exif
autorotate:  "IMG_1122.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1122.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(5534)/digikam (core) Digikam::exifTransform: ExifRotate: no rotation to
perform:  "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1122.JPG"
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Set
metadata from:  "IMG_1122.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1122.JPG") )
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Metadata template title :  "_REMOVE_TEMPLATE_"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: File
Extension:  "jpg"  is supported for writing mode
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file '
.digikam-camera-tmp1-5534IMG_1122.JPG ' written to file.
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Downloading:  "IMG_1123.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1123.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Exif
autorotate:  "IMG_1123.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1123.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  8
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Set
metadata from:  "IMG_1123.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1123.JPG") )
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Metadata template title :  "_REMOVE_TEMPLATE_"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: File
Extension:  "jpg"  is supported for writing mode
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file '
.digikam-camera-tmp1-5534IMG_1123.JPG ' written to file.
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Downloading:  "IMG_1124.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1124.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Exif
autorotate:  "IMG_1124.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1124.JPG") )
digikam(5534)/digikam (core) Digikam::isJpegImage: mimetype =  "JPEG"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  8
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand: Set
metadata from:  "IMG_1124.JPG"  using ( KUrl("file:///home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/.digikam-camera-tmp1-5534IMG_1124.JPG") )
digikam(5534)/digikam (core) Digikam::CameraController::executeCommand:
Metadata template title :  "_REMOVE_TEMPLATE_"
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::KExiv2Priv::saveToFile: File
Extension:  "jpg"  is supported for writing mode
digikam(5534)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file '
.digikam-camera-tmp1-5534IMG_1124.JPG ' written to file.
digikam(5534)/digikam (core) Digikam::DImg::load: "/home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/img_1122.jpg"  : JPEG file identified
digikam(5534)/digikam (core) Digikam::ImageScanner::addImage: Adding new item
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1122.jpg"
digikam(5534)/digikam (core) Digikam::ImageScanner::scanFromIdenticalFile:
Recognized "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming/img_1122.jpg" as identical to item 75203
digikam(5534)/digikam (core)
Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 75351
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1122.jpg"
digikam(5534)/digikam (core) Digikam::DImg::load: "/home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/img_1123.jpg"  : JPEG file identified
digikam(5534)/digikam (core) Digikam::ImageScanner::addImage: Adding new item
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1123.jpg"
digikam(5534)/digikam (core) Digikam::ImageScanner::scanFromIdenticalFile:
Recognized "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming/img_1123.jpg" as identical to item 75265
digikam(5534)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty:
KDirWatch detected change at "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming"
digikam(5534)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty:
KDirWatch detected change at "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming"
digikam(5534)/digikam (core) Digikam::DImg::load: "/home/px79/daten/Bilder
(private)/Fotos unsortiert/Incoming/img_1124.jpg"  : JPEG file identified
digikam(5534)/digikam (core) Digikam::ImageScanner::addImage: Adding new item
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1124.jpg"
digikam(5534)/digikam (core) Digikam::ImageScanner::scanFromIdenticalFile:
Recognized "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming/img_1124.jpg" as identical to item 75264
digikam(5534)/digikam (core)
Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 75352
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1123.jpg"
digikam(5534)/digikam (core)
Digikam::ScanControllerLoadingCacheFileWatch::slotImageChanged: 75353
"/home/px79/daten/Bilder (private)/Fotos unsortiert/Incoming/img_1124.jpg"
digikam(5534)/digikam (core) Digikam::AlbumManager::slotDirWatchDirty:
KDirWatch detected change at "/home/px79/daten/Bilder (private)/Fotos
unsortiert/Incoming"
digikam(5534)/kdeui (KNotification) KNotificationManager::notificationClosed:
1528
digikam(5534)/kio (Scheduler) KIO::SchedulerPrivate::doJob:
KIO::SimpleJob(0xa65a598)
digikam(5534)/kio (Slave) KIO::Slave::createSlave: createSlave "digikamdates"
for
KUrl("digikamdates:?databaseType=QSQLITE&databaseName=%2Fhome%2Fpx79%2Fdaten%2FBilder%20%28private%29%2FDigiKam%20Foto%20DB%2Fcurrent%2Fdigikam4.db&connectOptions=&hostName=&userName=&password=")
digikam(5534)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote:
Listening on  "local:/tmp/ksocket-px79/digikamKC5534.slave-socket"
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOConnection)
KIO::SocketConnectionBackend::socketReadyRead:
KIO::SocketConnectionBackend(0xbe7deb0) Jumbo packet of 319648 bytes
digikam(5534)/kio (KIOJob) KIO::TransferJob::slotFinished:
KUrl("digikamdates:?databaseType=QSQLITE&databaseName=%2Fhome%2Fpx79%2Fdaten%2FBilder%20%28private%29%2FDigiKam%20Foto%20DB%2Fcurrent%2Fdigikam4.db&connectOptions=&hostName=&userName=&password=")
digikam(5534)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished:
KIO::SpecialJob(0xa65a598) KIO::Slave(0xad852e0)
-------------------- >8 --------------------

IMHO: The text "Digikam::exifTransform: ExifRotate:" should show up three times
instead of only one time.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Digikam-devel mailing list