Page 1 of 1

osx cr2 conversion ufraw batch delegate failed

Posted: 2010-06-04T17:04:21-07:00
by EMBEE
Hi guys,

I am very new to all of this but I was hoping if anybody could shed some light on this? I cant seem to get a CR2 to convert with imagemagick. ufraw has no problems loading it up in standalone.
here is what the shell spits out:

Macbook-Pro:Desktop Jim$ convert -verbose cr2:test.CR2 test.tif
"ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png --out-depth=16 "--output=/var/folders/eN/eNab4mcnE74mYdP2cCdbok+++TI/-Tmp-/magick-zIuZ1JHk.png" "/var/folders/eN/eNab4mcnE74mYdP2cCdbok+++TI/-Tmp-/magick-65aeHJSs"
convert: delegate failed `"ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1061.
convert: unable to open image `/var/folders/eN/eNab4mcnE74mYdP2cCdbok+++TI/-Tmp-/magick-zIuZ1JHk.ppm': No such file or directory @ error/blob.c/OpenBlob/2491.
convert: missing an image filename `test.tif' @ error/convert.c/ConvertImageCommand/2970.

As far as I can see I have the latest greatest of everything required.

Many thanks

James

Re: osx cr2 conversion ufraw batch delegate failed

Posted: 2010-06-04T17:11:24-07:00
by fmw42
Does IM recognize your ufraw? I am not an expert on raw files and the delegates, but type the following and look at the line starting with DELEGATES.

convert -list configure


What version of IM do you have? How did you install it and where did you get and install your delegate files? I don't know if IM binary for mac comes with ufraw installed or not, but the above will tell. If not then you installed it after installing IM and you will likely need to reinstall IM source (after installing any delegates).

This may be of interest, but relates more to DCRAW. See http://www.imagemagick.org/Usage/formats/#crw

Re: osx cr2 conversion ufraw batch delegate failed

Posted: 2010-06-04T17:37:27-07:00
by EMBEE
Wow thank you so much for such a quick reply.

No it is not present in the list of delegates

I am on v6.6.2 and yes it ufraw was installed after IM - both using darwinports.

looks like it is time to re-install IM. re running darwinports doesnt seem to want to re install. Is there a good way to deinstall IM?

Re: osx cr2 conversion ufraw batch delegate failed

Posted: 2010-06-04T17:51:26-07:00
by fmw42
Don't know much about darwinports. I have installed my latest set of delegates using MacPorts and then manually installed IM. (I am on Mac OSX Tiger and IM 6.6.2.2 Q16).

For deinstalling IM manually, see http://www.imagemagick.org/script/advan ... .php#build

But can you not just install IM using darwinports and write over your current install without having to de-install?

If you installed all your delegates using DarwinPorts, if it puts them in some special directory, then if you don't install IM using darwinports, you will need to customize your configure file to tell IM where all your delegates are located.

Re: osx cr2 conversion ufraw batch delegate failed

Posted: 2010-06-09T08:39:39-07:00
by EMBEE
Hi,

I have sorted this now. Removing everything and starting from scratch. Following this order:

http://sourceforge.net/projects/ufraw/f ... ge=5878761

Many thanks fmw42

Re: osx cr2 conversion ufraw batch delegate failed

Posted: 2017-07-22T06:39:14-07:00
by thejll
Old thread, I know: but for anyone else with this 'delegate failed' error from ufraw:

You can also get the 'delegate failed' error from ufraw-batch if all you happen to label a non-CR2 image as a CR2 image. I did this using a script that fetched images from the camera using gphoto2. Gphoto2 allows naming the saved file and I was naming the file as a .CR2. However, my camera was not set to RAW ... so the image was probably a jpeg but the extension was .CR2 and ufraw-batch failed. So did ufraw of course. The present thread had encountered another problem with ufraw, but now you can see that the same errors can happen for a different reason. Check that your camera is downloading as CR2!