Nautilus RAW image thumbnails have wrong orientations.

Bug #275865 reported by Victor Osadci
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Nautilus
Unknown
Medium
gnome-raw-thumbnailer (Ubuntu)
Fix Committed
Low
Anton Keks

Bug Description

Binary package hint: nautilus

The thumbnails are shown rotated, but opening the images shows them in the correct orientation.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.
 We have instructions on debugging some types of problems. http://wiki.ubuntu.com/DebuggingProcedures
At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
4. a screenshot of the issue.

Thanks!

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Victor Osadci (victor-os) wrote :

I just noticed that this only hapens for JPEG files, but not RAW (NEF) files.

I take photos in JPEG+RAW, so there are two copies of the photo. The thumbs for the NEFs have correct orientations, and the JPEG thumbs seem to not have the orientation tag applied to them.

Revision history for this message
Victor Osadci (victor-os) wrote :

In the attached screenshot there are 4 files - JPEG and RAW/NEF versions of two photos.

The RAW ones are oriented correctly and the JPEG are not.

One of the JPEGs is opened in EOG, and is oriented correctly.

I would expect all the images to be oriented similar to the RAW/NEF and as they display in EOG.

Revision history for this message
Sebastien Bacher (seb128) wrote :

what ubuntu version do you use? could you add an image example to the bug?

Revision history for this message
Victor Osadci (victor-os) wrote :

This was on Intrepid, and it seems to have been fixed. Feel free to close this bug.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly now

Changed in nautilus:
status: Incomplete → Fix Released
Revision history for this message
Victor Osadci (victor-os) wrote :

I'm reopening this bug as I can see it in 9.04, but now the thumbnails for JPEG files are shown correctly, and the RAW are not.

Changed in nautilus (Ubuntu):
status: Fix Released → New
Revision history for this message
Victor Osadci (victor-os) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

raw files have no exif informations to be used for auto orientation, that's not a bug

Changed in nautilus (Ubuntu):
status: New → Fix Released
Revision history for this message
Victor Osadci (victor-os) wrote :

Seb, if you look at http://launchpadlibrarian.net/18038517/image-thumb.png, you will notice that when this bug was reported initially, the RAW files were being rotated, and now they are not.

I believe RAW files do have orientation data in them. Opening the RAW file in UFRaw does also show the correct orientation.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you add an image example to the bug?

Revision history for this message
Victor Osadci (victor-os) wrote :
Revision history for this message
Victor Osadci (victor-os) wrote :
Changed in nautilus (Ubuntu):
status: Fix Released → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

just tested with the images you provided with the Gimp (different program to avoid confusion), DSC_3239.NEF doesn't have exif information and it's displayed in an horizontal format, exif command line utils returns:

Corrupt data (ExifLoader):
The data supplied does not seem to contain EXIF data.

test with DSC_3239.JPG the orientation on the EXIF data is left - bottom, and gimp ask you if you want to rotate it or not after you open it. Nautilus behaves the same way, but it doesn't ask you if you want to rotate it, it just do it based on the exif information, this is not a bug.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

seems nautilus/eog are base their rotation on exif tags, if the raw file doesn't contain that info it just doesn't rotate those, you'll get same behavior with both applications and gimp does the same with the file unless you install gimp-ufraw to threat with those.

Revision history for this message
Victor Osadci (victor-os) wrote :

Pedro, what tool do you use to look at the data ?

# exiv2 -p a DSC_3239.NEF | grep Orientation
Exif.Image.Orientation Short 1 left, bottom

For me, opening the NEF from GIMP only brings up UFRaw, which then sends the image to GIMP with the correct orientation. I have gimp-ufraw, which probably does this.

Also, considering that the RAW files used to be shown with the correct orientation some time in the past, I'd say this is a regression.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Will send this upstream better, they might have a clue on what's going on there.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've sent this upstream at: http://bugzilla.gnome.org/show_bug.cgi?id=582768 ; feel free to subscribe to it for get comments from the upstream developers, thanks.

Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
Changed in nautilus:
importance: Undecided → Unknown
status: New → Unknown
summary: - Nautilus image thumbnails have wrong orientations.
+ Nautilus RAW image thumbnails have wrong orientations.
Changed in nautilus:
status: Unknown → New
Revision history for this message
mjc (mjc-avtechpulse) wrote :

What software is used to generate the RAW thumbnails?

Is it gnome-raw-thumbnailer, based on libopenraw? If so, what version?

Or is something else being used?

Using gconf-editor to check the various keys in /desktop/gnome/thumbnailers may provide this information.

RAW images do generally contain orientation tags, and lots of other metadata.

- Mike

Revision history for this message
Victor Osadci (victor-os) wrote :

Michael,

/desktop/gnome/thumbnailers/image@x-dcraw/command gnome-raw-thumbnailer -s %s %u %o

The version of "gnome-raw-thumbnailer" is 2.0.1-0ubuntu5, but there are no openraw packages installed, only dcraw.

Another thing I noticed is that when increasing the size of the thumbnails (Ctrl++), the thumbs are regenerated, the orientation is correct and the thumb quality is rather bad; so, it looks like the problem is dependent on the thumbnail size.

Revision history for this message
mjc (mjc-avtechpulse) wrote :

Victor,

gnome-raw-thumbnailer 2.0.1-0ubuntu5 appears to refer to this software, which made its last release in 2005:
http://sourceforge.net/project/showfiles.php?group_id=131836.

Ubuntu should switch to this one, which uses libopenraw, and handles orientation correctly:
http://git.gnome.org/cgit/gnome-raw-thumbnailer/

Anyway, this is not a Nautilus issue. You have a bad thumbnailer.

- Mike

Changed in nautilus:
status: New → Invalid
affects: nautilus (Ubuntu) → gnome-raw-thumbnailer (Ubuntu)
Changed in gnome-raw-thumbnailer (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
status: Triaged → Confirmed
Revision history for this message
Koen Verweij (kfverweij) wrote :

So I still have no right orientation on my NEF Nikon raw images, jpegs are ok. Is it true that all that is needed is an updated gnome-raw-thumbnailer as Michael suggests?

Revision history for this message
Bagameri Magameri (bliszi256) wrote :

In ubuntu karmic gnome-raw-thumbnailer works perfectly. It shows the thumbnails of Canon .cr2 raw files (from Canon 5D camera) with the correct orientation. However in ubuntu lucid the orientation of the thumbnails of the same portrait oriented raw pictures are wrong. They are rotated by 90 degrees. In both cases gnome-raw-thumbnailer has been installed from the ubuntu repo. The F-Spot application both in karmic and lucid shows the thumbnails with the correct orientation. The same is true for digiKam. However the gthumb application in lucid shows the thumbnails with the wrong orientation and in karmic works perfectly. It seems, that gthumb in lucid needs the libopenraw library and gnome-raw-thumnailer works without it. Both karmic and lucid was a fresh installation. All the raw handling application i have tried (gimp, rawstudio, ufraw, gimp, digiKam) handle the raw files correctly. I do not know if this is the same probleme or not.

Bagameri

Changed in nautilus:
importance: Unknown → Medium
status: Invalid → Unknown
Revision history for this message
tonnzor (tonn81) wrote :

I have the same issue on Ubuntu 10.10 - Maverick Meerkat.

That is surely a bug in gnome-raw-thumbnailer, not in Nautilus itself.

I want to confirm once more that RAW (at least in my use case) has Orientation tag in its metadata (use exiv2 to check).

We need to contact developers of gnome-raw-thumbnailer at http://gnome-raw-thumb.sourceforge.net/ so they respect orientation during thumbnail generation. Actually I suppose they already use metadata for getting embedded thumbnail from RAW.

Revision history for this message
Anton Keks (anton-azib) wrote :

Guys, as Michael Chudobiak pointed out in #21, Ubuntu should switch to gnome's thumbnailer, which is based on libopenraw:

http://libopenraw.freedesktop.org/wiki/RawThumbnailer/

This one rotates thumbnails and is much faster.

Please, stop packaging this old stuff from sourceforge.

Revision history for this message
Anton Keks (anton-azib) wrote :

BTW, here is a bit improved version of the thumbnailer
https://github.com/angryziber/gnome-raw-thumbnailer

Revision history for this message
Anton Keks (anton-azib) wrote :

I have a fix

Changed in gnome-raw-thumbnailer (Ubuntu):
assignee: nobody → Anton Keks (anton-azib)
Revision history for this message
Anton Keks (anton-azib) wrote :

I have packaged the new raw-thumbnailer based on libopenraw that rotates thumbnails properly:
https://code.launchpad.net/~anton-azib/ubuntu/saucy/raw-thumbnailer/speed-n-orientation

Binary packages:
https://launchpad.net/~anton-azib/+archive/fixes/

Please test!

Changed in gnome-raw-thumbnailer (Ubuntu):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.