Bug 56354 - [test case] Konqueror does not respect JPEG EXIF tags (specially 'Orientation')
Summary: [test case] Konqueror does not respect JPEG EXIF tags (specially 'Orientation')
Status: RESOLVED LATER
Alias: None
Product: konqueror
Classification: Applications
Component: khtml image part (show other bugs)
Version: 3.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Simon Hausmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-25 01:33 UTC by Oscar Renalias
Modified: 2008-04-21 10:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test case/Sample (182.45 KB, image/jpeg)
2003-03-25 11:10 UTC, Oscar Renalias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oscar Renalias 2003-03-25 01:33:04 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          2.95.3 20010315 (release)
OS:          Linux

I got myself a nice digital camera (lemme show off, come on: a small yet powerful Canon Ixus V3) and to my surprise, Konqueror does not respect the Orientation field which belongs to the set of EXIF tags embedded inside the JPEG files generated by these cameras (not only by mine) The "Orientation" field indicates if the image was taken with the camera turned around or in a horizontal position.

When checking the Meta tab, after right click on a jpeg file->properties, if the image has been taken with the camera turned 90 degrees to the left, the value of the field "Orientation" is 6, while if it was taken with the camera in the normal horizontal position that field is set to 1. Hence, it would be nice if Konqueror would detect the value of that field and turn the image accordingly so that it is shown as it was supposed to be. 

KView is not capable of doing that either, while Kuickshow is. If you want a sample image with EXIF tags embedded into it, try the following one:

http://www.megacceso.com/usuarios/schumi/test_image.jpg

It's a picture of my laptop a few minutes before posting this :) You should see it 90 degrees turned to the left in Konqueror, however correctly turned in Kuickshow.

I haven't had a look at the specifications of the EXIF tags so I don't know how many different values the "Orientation" field can take, but I believe that having a look at the code of Kuickshow would give us all an idea about how to fix this.
Comment 1 Oscar Renalias 2003-03-25 11:10:23 UTC
Created attachment 1241 [details]
Test case/Sample

This is a the same sample image that I put up in the server. I thought that
adding it as an attachment would make things easier...
Comment 2 Oscar Renalias 2003-03-25 11:11:31 UTC
I forgot to mention that thumbnails and previews (i.e. the ones shown in the 
'Open file' dialog, for example) also are shown not correctly turned. 
Comment 3 Sander Devrieze 2003-08-30 20:32:03 UTC
> I forgot to mention that thumbnails and previews (i.e. the ones shown in the
> 'Open file' dialog, for example) also are shown not correctly turned.

In kde 3.1.2 this works correct and also the mouse over preview works correct.
The only thing that don't work correct is the embedded viewer.
Comment 4 Sander Devrieze 2003-08-30 20:33:22 UTC
update: It also don't work correct with kview.
Comment 5 Jens 2004-01-09 16:14:37 UTC
Update: In KDE 3.2 post-beta2 (CVS 2004-01-02), pictures with "orientation: top right" EXIF header will have non-rotated thumbnails. BUT Konqueror itself (embedded viewer) will display the file correctly rotated.

However, if you rotate the file with RMB->Actions->Transform Image->Clockwise, the thumbnail will be correct, Gwenview will show the file correctly (portrait mode) - but when viewed in the embedded viewer, it will show up rotated *twice*.


Example image on request.
Comment 6 Sander Devrieze 2004-02-08 15:00:46 UTC
Not yet fixed in KDE 3.2
Comment 7 Michał Kosmulski 2004-08-13 08:42:28 UTC
As of KDE 3.2.3, EXIF Orientation is correctly interpreted for thumbnails, but not when opening the 'large' image with konqueror. So images with Orientation!=1 display correctly rotated thumbnails, but when you e.g. choose 'open in a new window', the full-size image is not rotated according to EXIF Orientation tag.
Comment 8 Jens 2005-02-18 00:23:26 UTC
Konqueror's behaviour depends on the viewer KPart that is used from within Konqueror (e.g. KHTML vs. KView vs. Gwenview), and whether "use thumbnails embedded in images" is activated or not. Please also see Bug 97484 and Bug 97048, these are related (if not the same). Bug 88112 is also related to this bug.

Is anything being done on these bugs?
Comment 9 Gilles Schintgen 2005-04-01 22:22:36 UTC
The "Photobook" is also misbehaving :-(
but that's Bug 80118. Hopefully all these apps (or components) will be fixed someday.
Comment 10 Jens 2005-04-02 13:28:25 UTC
I guess we could make Gwenview the default image viewer in Konqueror, it has other advantages to the default viewer (automatic fit to window size, next/prev buttons in Konq's toolbar, etc).

Then this problem would be solved.
Comment 11 David Bowen 2005-04-23 00:49:54 UTC
I'm using Konqueror 3.4.0.-2.0.3.kde (on Fedora Core 3). I have images from a Canon EOS 350D and the orientation is described in the "Meta Info" tab of Konqueror as "6" (I had the camera rotated 90 degrees to the right when I took the photo).

My experience is:
* kuickshow shows the image in the correct orientation
* konqueror thumbnail has it rotated 90 degrees to the left
* the (rather groovy) tooltip sadly also shows it 90 degrees to the left
* the photobook view thumbnails and the image itself are both rotated 90 degrees to the left

I have the "Use thumbnails embedded in files" option checked. The behaviour is actually the same with the option unchecked.

The services preference order on the embedding tab has "Embeddable Image Viewer" first (although I don't use it as it doesn't automatically fit to window). It also has the images rotated 90 degrees to the left. I'm afraid I couldn't see Gwenview in the list of available services to experiment with that solution.

Obviously I'd like the thumbnails etc. to be rotated, but I can live with this.
Comment 12 David Bowen 2005-04-24 02:10:13 UTC
I have just started using digikam (a KDE application) which does a good job with the thumbnails. I'm not sure if the work they have done can be used to help the rest of KDE?
Comment 13 Full Decent 2005-12-14 03:43:29 UTC
I am using:

KDE Version  3.4.3 (KDE 3.4.3, Kubuntu Package 4:3.4.3-0ubuntu1 )
Application  Web Browser/File Manager
Operating System  Linux (i686) release 2.6.12-9-386
Compiler  Target: i486-linux-gnu

And while using Image View in Konqueror, the thumbnails do not show up properly, but the full sized images do. 
Comment 14 Ralf Hildebrandt 2005-12-14 09:41:24 UTC
This is fixed in KDE 3.5.0
Comment 15 George Goldberg 2008-02-15 05:22:00 UTC
Can anyone still reproduce this bug with a recent version of KDE (3.5.8 or 4.0.1)? Otherwise, will close as fixed re comment #14
Comment 16 Hatto Von Hatzfeld 2008-02-15 11:09:16 UTC
In contrast to comment #14 when using "Photobuch" in Konqueror in KDE 3.5.1 the thumbnails show up properly, but the full images fail.

In KDE 3.5.7 I did not find "Photobuch" while Image View works without failure (as in KDE 3.5.1).
Comment 17 Michael Leupold 2008-04-06 06:27:06 UTC
Works in trunk r793971.
Comment 18 Michael Leupold 2008-04-09 11:36:27 UTC
Still present in 3.5.9, works in trunk r793971.
Comment 19 Michael Leupold 2008-04-09 12:33:39 UTC
reopening as still present in 3.5.9.
Comment 20 Michael Leupold 2008-04-21 10:15:34 UTC
Qualifies for backporting to the 3.x branch.