convert RAF files in imagemagick

au flag

I'm trying to convert .RAF files to .png using imagemagick. When I invoke the command:

convert In.RAF Out.png

I get an error:

convert-im6.q16: delegate failed `'ufraw-batch' --silent --create-id=also --out-type=png --out-depth=16 --output='%u.png' '%i'' @ error/delegate.c/InvokeDelegate/1966.
convert-im6.q16: unable to open image `/tmp/magick-ejQzPVVSt94Dqk7SyrW5IgXBb7ujqXKS.ppm': No such file or directory @ error/blob.c/OpenBlob/2924.
convert-im6.q16: no images defined `Out.png' @ error/convert.c/ConvertImageCommand/3229.

I can't make much sense out of this. Can I fix it?

cn flag

**cough** **cough** its dependency issue (ufraw-batch).

Imagemagick uses ufraw-batch in behind the scenes to convert raw files, but for whatever reason its missing.

so install it

sudo apt install ufraw-batch


convert In.RAF Out.png

tip: for multiple files use

mogrify -format png *.RAF
iHnR avatar
au flag
Aah shows that I'm not quite fluent in error language :P Unfortunately it seems that ufraw is unmaintained and removed from repos. There is a fork called nUfraw that I haven't tested yet and I don't see high hopes of it being maintained. There is also dcraw that can do similar things. I'm guessing imagemagick will sort it out in a few months.
bogdanoff avatar
cn flag
Its not your fault at all, usually when a dependency is not found, it should print something like 'xxx not found' but instead it showed failed and that's a bad practice .

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.