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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/442379

Title:
  RAW THUMBNAILS:  Canon 7D not implemented

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to