6

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

3 Answers 3

8

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

You can use instead dcraw .

2
  • dcraw doesn't seem to replace ufraw. Previously, with ufraw-batch installed, I could use the convert (from ImageMagick) utility to convert DNG files to JPG files. With dcraw installed, I can no longer do this.
    – Raleigh L.
    Dec 5, 2022 at 4:00
  • @RaleighL. may be this can help kevinludlow.com/blog/… Jan 13, 2023 at 0:03
4

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.

1
  • convert - ${ should be convert - "${ but SO won't allow me to make edits less than 8 characters :) Jan 25, 2023 at 23:47
0

Source is at http://ufraw.sourceforge.net/. But it's an old program which uses a few things not available any more. Gtkimageview was the last thing I ran into, it's a generic image scratchpad they shouldn't have used because when that went away it broke everything. Like Windows used IE for drawing text on screen, it was really needed.

I have seen a version that uses output to some other file format, that's semi-usable. Could maybe be rewritten to use GTK instead, not sure I'm up to it or have the time. But without ufraw I can't do photography because nothing else is usable and I was just getting into star pictures.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .