4

I used ufraw-batch in my Nautilus scripts like this one:

#!/bin/bash

while [ $# -gt 0 ]; do
    picture=$1
    ufraw-batch --out-type jpg "$picture"
    shift
done

It helped me a lot for generating previews of raw photos, located in different file-servers.

I have installed 20.04 and found, that ufraw-batch is not in repos anymore. What can I do?

Thanks for the answer, this is my new script using dcraw and imagick instead, hope it helps somebody:

#!/bin/bash

while [ $# -gt 0 ]; do
    picture=$1
    j_file=`echo "$picture" | sed 's/\.\w*$/.jpg/'`
    dcraw -c -w "$picture" | convert - "$j_file"
    shift
done
7

It seem that ufraw is unmaintained => https://en.wikipedia.org/wiki/UFRaw

You can use instead dcraw .

3

I just found this q&a because ufraw is missing in my distro as well. I know this is an old thread, but your script above can be improved like this:

while [ $# -gt 0 ]; do
    picture=$1
    dcraw -c -w "$picture" | convert - ${picture%\.*}.jpg"
    shift
done

So there is no need to call echo and sed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.