RAW THUMBNAILS: Canon 7D not implemented

Bug #442379 reported by Troy James Sobotka
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-raw-thumbnailer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-raw-thumbnailer

Summary: The GNOME raw thumbnailer relies on libraw which is a translation of Dave Coffin's RAW processing tool dcraw. It is not up to date in Ubuntu Karmic.

ProblemType: Bug
Architecture: amd64
Date: Sun Oct 4 09:42:41 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: fglrx
Package: nautilus 1:2.28.0-0ubuntu4
ProcEnviron:
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: nautilus
Uname: Linux 2.6.31-11-generic x86_64

Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :
Changed in gnome-raw-thumbnailer (Ubuntu):
status: New → Confirmed
Revision history for this message
loe (thabastlwastl) wrote :

the thumbnails generated from raws out of my olymus e-3 where also broken.

Trying to fix the problem, I was looking into the source code of gnome-raw-thumbnailer.c:

The code has not been changed since 2005 and most of its code, the extraction of the thumbnails, was done by code copied from the parser.c of the dcraw project in 2004. In the current version of dcraw the thumbnails aren't any longer extracted by the parser but from dcraw itself. So a quite simple upgrade of the source code used in the gnome-raw-thumnailer was not possible. I am also thinking that this would not be a good idea since you would have to upgrade the code again and again for every new RAW Image Format. In my eyes a much better solution is to generate the thumbnails by use of another well maintained program, so that in the
event of an new format I just would have to upgrade to the newest version and everything works again. Since dcraw would not let me specify an alternate path or filename for the extracted preview I decided to use ufraw-batch for my workaround.

My solution to the problem is at the moment more or less a workaround /quick fix, that solves the problem for me.
I need to have the following packages installed:

gnome-raw-thumbnailer ufraw imagemagick

The main use for the gnome-raw-thumbnailer package is at the moment the registration of the Image Types in gome. The gnome-raw-thumbnailer itself in /usr/bin/ is replaced by this little bash script (Its probably not very nicely programmed, but I am open for suggestions/ improvements):

#!/bin/bash
# Raw Thumbnailer - Replacement for obsolete Gnome-Raw-Thumbnailer
#
# depends on gnome-raw-thumbnailer imagemagick ufraw
# if your Raw is not supported, just upgrade to the latest ufraw version!
# dcraw is not used since dcraw does not allow to specify a different
output file name and path for the extracted preview.
#
# DWTFYW License and GPL v3
# Sebastian Haaf 14-12-2010 - thabastlwastl _at_ gmail _dot_ com
#
# TODO use RANDOM Name (time in ms/ns + ImageName) for tmp_thumb, delete
tmp_thumb after use
# TODO remove dependency of gnome-raw-thumbnailer /make an own pakage
#
displayHelp() {
    echo "Raw Thumbnailer - make sure imagemagick and ufraw
(ufraw-batch) are installed."
    echo
    echo "Usage: $0 [-s size] input output"
    echo "Usage: $0 input output"
    echo
}

sflag=0
while getopts 's:' OPTION
do
  case $OPTION in
  s) sflag=1
                sval="$OPTARG"
        ;;

   ?) displayHelp
                exit 2
                ;;
  esac
done
if [ $sflag == 1 ]
then
# $1 == "-s"
ufraw-batch --embedded-image --output=/tmp/tmp_thumb.jpg --silent
--overwrite $3
convert -resize $2x$2 /tmp/tmp_thumb.jpg $4

else
    if [ $# == 2 ]
    then
    ufraw-batch --embedded-image --output=/tmp/tmp_thumb.jpg --silent
--overwrite $1
    convert -resize 128x128 /tmp/tmp_thumb.jpg $2

    else
     displayHelp
    fi

fi
exit 0

Revision history for this message
loe (thabastlwastl) wrote :

You have to have gnome-raw-thumbnailer ufraw and imagemagick installed. Just replace in /usr/bin/ the gnome-raw-thumbnailer executable with the attached bash script (don't forget chmod +x)

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/

Remove gnome-raw-thumbnailer and install raw-thumbnailer 3.1.0 from my PPA for testing

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.