ImageMagick & Ufraw

Mo Issa moi at ku.edu
Mon Oct 25 13:26:28 PDT 2010


> Hello all --
> 
> I have ImageMagick installed using MacPorts and I also have Ufraw installed
> but somehow ImageMagick in failing at using ufraw-batch to convert RAW files.
> I keep on getting this message:
> 
> $imagemagick convert /Users/xxx/Desktop/1-19-07-mean-judge.jpg
> /Users/xxx/Desktop/1-19-07-mean-judge.png
> $imagemagick convert /Users/xxx/Desktop/11095_B_BestRAW/11095_B_337.dng
> /Users/xxx/Desktop/11095_B_BestRAW/11095_B_337.jpgconvert: 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/-2/-2W5oTwyFcK0QqAdpi+T3U+++TI/-Tmp-/magick-77L1mgOX.ppm': No
> such file or directory @ error/blob.c/OpenBlob/2572.
> convert: missing an image filename
> `/Users/xxx/Desktop/11095_B_BestRAW/11095_B_337.jpg' @
> error/convert.c/ConvertImageCommand/2946.
> 
> Can anybody help. How do I configure ImageMagick to use ufraw as delegate. I
> Looked at the Delegate.xml file and This is what I have: Could it be that
> ImageMagick is not configured properly?
> 
> Here's my delegate.xml file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE delegatemap [
> <!ELEMENT delegatemap (delegate)+>
> <!ELEMENT delegate (#PCDATA)>
> <!ATTLIST delegate decode CDATA #IMPLIED>
> <!ATTLIST delegate encode CDATA #IMPLIED>
> <!ATTLIST delegate mode CDATA #IMPLIED>
> <!ATTLIST delegate spawn CDATA #IMPLIED>
> <!ATTLIST delegate stealth CDATA #IMPLIED>
> <!ATTLIST delegate thread-support CDATA #IMPLIED>
> <!ATTLIST delegate command CDATA #REQUIRED>
> ]>
> <!--
>   Delegate command file.
> 
>   Commands which specify
> 
>     decode="in_format" encode="out_format"
> 
>   specify the rules for converting from in_format to out_format These
>   rules may be used to translate directly between formats.
> 
>   Commands which specify only
> 
>     decode="in_format"
> 
>   specify the rules for converting from in_format to some format that
>   ImageMagick will automatically recognize. These rules are used to
>   decode formats.
> 
>   Commands which specify only
> 
>    encode="out_format"
> 
>   specify the rules for an "encoder" which may accept any input format.
> 
>   For delegates other than ps:*, pcl:*, and mpeg:* the substitution rules are
>   as follows:
> 
>     %i  input image filename
>     %o  output image filename
>     %u  unique temporary filename
>     %Z  unique temporary filename
>     %#  input image signature
>     %b  image file size
>     %c  input image comment
>     %g  image geometry
>     %h  image rows (height)
>     %k  input image number colors
>     %m  input image format
>     %p  page number
>     %q  input image depth
>     %s  scene number
>     %w  image columns (width)
>     %x  input image x resolution
>     %y  input image y resolution
> 
>   Set option delegate:bimodal=true to process bimodal delegates otherwise they
>   are ignored.
> -->
> <delegatemap>
>   <delegate decode="autotrace" stealth="True"
> command="&quot;/opt/local/bin/convert&quot; &quot;%i&quot;
> &quot;pnm:%u&quot;\n&quot;autotrace&quot; -input-format pnm -output-format svg
> -output-file &quot;%o&quot; &quot;%u&quot;"/>
>   <delegate decode="avi:decode" stealth="True" command="&quot;mplayer&quot;
> &quot;%i&quot; -really-quiet -ao null -vo png:z=3"/>
>   <delegate decode="blender" command="&quot;blender&quot; -b &quot;%i&quot; -F
> PNG -o &quot;%o&quot;&quot;\n&quot;/opt/local/bin/convert&quot; -concatenate
> &quot;%o*.png&quot; &quot;%o&quot;"/>
>   <delegate decode="browse" stealth="True" spawn="True"
> command="&quot;xdg-open&quot; http://www.imagemagick.org/"/>
>   <delegate decode="cdr" command="&quot;uniconvertor&quot; &quot;%i&quot;
> &quot;%o.svg&quot;; mv &quot;%o.svg&quot; &quot;%o&quot;"/>
>   <delegate decode="cgm" thread-support="False" command="&quot;ralcgm&quot; -d
> ps -oC &lt; &quot;%i&quot; &gt; &quot;%o&quot; 2&gt; &quot;%Z&quot;"/>
>   <delegate decode="dvi" command="&quot;dvips&quot; -q -o &quot;%o&quot;
> &quot;%i&quot;"/>
>   <delegate decode="dng:decode" command="&quot;ufraw-batch&quot; --silent
> --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png
> --out-depth=16 &quot;--output=%u.png&quot; &quot;%i&quot;"/>
>   <delegate decode="edit" stealth="True" command="&quot;xterm&quot; -title
> &quot;Edit Image Comment&quot; -e vi &quot;%o&quot;"/>
>   <delegate decode="eps" encode="pdf" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 &quot;-sDEVICE=pdfwrite&quot;
> &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="eps" encode="ps" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pswrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="fig" command="&quot;fig2dev&quot; -L ps &quot;%i&quot;
> &quot;%o&quot;"/>
>   <delegate decode="gplt" command="&quot;/bin/echo&quot; &quot;set size
> 1.25,0.62     set terminal postscript portrait color solid; set output
> &quot;%o&quot;; load &quot;%i&quot;&quot; &gt;
> &quot;%u&quot;;&quot;gnuplot&quot; &quot;%u&quot;"/>
>   <delegate decode="hdr" command="&quot;ra_pfm&quot; &quot;%i&quot;
> &quot;%o&quot;"/>
>   <delegate decode="hpg" command="&quot;hp2xx&quot; -q -m eps -f `basename
> &quot;%o&quot;` &quot;%i&quot;;     mv -f `basename &quot;%o&quot;`
> &quot;%o&quot;"/>
>   <delegate decode="hpgl" command="if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then
> hp2xx -q -m eps -f `basename &quot;%o&quot;` &quot;%i&quot;;     mv -f
> `basename &quot;%o&quot;` &quot;%o&quot;;   else     echo &quot;You need to
> install hp2xx to use HPGL files with ImageMagick.&quot;;     exit 1;   fi"/>
>   <delegate decode="htm" command="&quot;html2ps&quot; -U -o &quot;%o&quot;
> &quot;%i&quot;"/>
>   <delegate decode="html" command="&quot;html2ps&quot; -U -o &quot;%o&quot;
> &quot;%i&quot;"/>
>   <delegate decode="https" command="&quot;/usr/bin/curl&quot; -s -k -o
> &quot;%o&quot; &quot;https:%M&quot;"/>
>   <delegate decode="ilbm" command="&quot;ilbmtoppm&quot; &quot;%i&quot; &gt;
> &quot;%o&quot;"/>
>   <delegate decode="man" command="&quot;/usr/bin/groff&quot; -man -Tps
> &quot;%i&quot; &gt; &quot;%o&quot;"/>
>   <delegate decode="mpeg:decode" command="&quot;/opt/local/bin/ffmpeg&quot; -v
> -1 -vframes %S -i &quot;%i&quot; -vcodec pam -an -f rawvideo -y
> &quot;%u.pam&quot; 2&gt; &quot;%Z&quot;"/>
>   <delegate encode="mpeg:encode" stealth="True"
> command="&quot;/opt/local/bin/ffmpeg&quot; -v -1 -mbd rd -flags +4mv+aic
> -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i &quot;%M%%d.jpg&quot;
> &quot;%u.%m&quot; 2&gt; &quot;%Z&quot;"/>
>   <delegate decode="sid" command="&quot;mrsidgeodecode&quot; -if sid -i
> &quot;%i&quot; -of tif -o &quot;%o&quot; &gt; &quot;%u&quot;"/>
>   <delegate decode="pcl:color" stealth="True" command="&quot;pcl6&quot;
> -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000
> -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ppmraw&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
>   <delegate decode="pcl:cmyk" stealth="True" command="&quot;pcl6&quot; -dQUIET
> -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0
> -dGridFitTT=2 &quot;-sDEVICE=bmpsep8&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
>   <delegate decode="pcl:mono" stealth="True" command="&quot;pcl6&quot; -dQUIET
> -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0
> -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
>   <delegate decode="pdf" encode="eps" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=epswrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="pdf" encode="ps" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pswrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="pic" command="&quot;ra_pfm&quot; &quot;%i&quot;
> &quot;%o&quot;"/>
>   <delegate decode="png" encode="launch" mode="encode"
> command="&quot;gimp&quot; &quot;%i&quot;"/>
>   <delegate decode="png" encode="webp" command="&quot;webpconv&quot;
> &quot;%i&quot; &quot;%o.webp&quot;; mv &quot;%o.webp&quot; &quot;%o&quot;"/>
>   <delegate decode="pnm" encode="ilbm" mode="encode"
> command="&quot;ppmtoilbm&quot; -24if &quot;%i&quot; &gt; &quot;%o&quot;"/>
>   <delegate decode="pov" command="&quot;povray&quot; &quot;+i%i&quot; -D0
> +o&quot;%o&quot; +fn%q +w%w +h%h +a -q9 -kfi&quot;%s&quot;
> -kff&quot;%n&quot;\n&quot;/opt/local/bin/convert&quot; -concatenate
> &quot;%o*.png&quot; &quot;%o&quot;"/>
>   <delegate decode="ps" encode="eps" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=epswrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="ps" encode="pdf" mode="bi"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pdfwrite&quot; &quot;-sOutputFile=%o&quot; &quot;-f%i&quot;"/>
>   <delegate decode="ps" encode="print" mode="encode" command="lpr
> &quot;%i&quot;"/>
>   <delegate decode="ps:alpha" stealth="True"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pngalpha&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
> &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot;
> &quot;-f%s&quot;"/>
>   <delegate decode="ps:cmyk" stealth="True"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pam&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
> &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot;
> &quot;-f%s&quot;"/>
>   <delegate decode="ps:color" stealth="True"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pnmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
> &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot;
> &quot;-f%s&quot;"/>
>   <delegate decode="ps:mono" stealth="True"
> command="&quot;/opt/local/bin/gsx&quot; -q -dQUIET -dSAFER -dBATCH -dNOPAUSE
> -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
> &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u -dGraphicsAlphaBits=%u
> &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot; &quot;-f%s&quot;
> &quot;-f%s&quot;"/>
>   <delegate decode="rad" command="&quot;ra_pfm&quot; &quot;%i&quot;
> &quot;%o&quot;"/>
>   <delegate decode="rgba" encode="rle" mode="encode"
> command="&quot;rawtorle&quot; -o &quot;%o&quot; -v &quot;%i&quot;"/>
>   <delegate decode="scan" command="&quot;scanimage&quot; -d &quot;%i&quot;
> &gt; &quot;%o&quot;"/>
>   <delegate decode="scanx" command="&quot;scanimage&quot; &gt;
> &quot;%o&quot;"/>
>   <delegate decode="miff" encode="show" spawn="True"
> command="&quot;/opt/local/bin/display&quot; -delay 0 -window-group %[group]
> -title &quot;%l of %f&quot; &quot;ephemeral:%i&quot;"/>
>   <delegate decode="shtml" command="&quot;html2ps&quot; -U -o &quot;%o&quot;
> &quot;%i&quot;"/>
>   <delegate decode="svg" command="&quot;rsvg&quot; &quot;%i&quot;
> &quot;%o&quot;"/>
>   <delegate decode="txt" encode="ps" mode="bi"
> command="&quot;/usr/bin/enscript&quot; -o &quot;%o&quot; &quot;%i&quot;"/>
>   <delegate decode="miff" encode="win" stealth="True" spawn="True"
> command="&quot;/opt/local/bin/display&quot; -immutable -delay 0 -window-group
> %[group] -title &quot;%l of %f&quot; &quot;ephemeral:%i&quot;"/>
>   <delegate decode="webp" command="mv &quot;%i&quot;
> &quot;%i.webp&quot;;&quot;webpconv&quot; -format PNG &quot;%i.webp&quot;;
> convert &quot;%i.png&quot; &quot;%o&quot;;rm &quot;%i.webp&quot;
> &quot;%i.png&quot;"/>
>   <delegate decode="wmf" command="&quot;wmf2eps&quot; -o &quot;%o&quot;
> &quot;%i&quot;"/>
>   <delegate decode="xps:color" stealth="True" command="&quot;gxps&quot;
> -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000
> -dAlignToPixels=0 -dGridFitTT=2 &quot;-sDEVICE=ppmraw&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
>   <delegate decode="xps:cmyk" stealth="True" command="&quot;gxps&quot; -dQUIET
> -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0
> -dGridFitTT=2 &quot;-sDEVICE=bmpsep8&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
>   <delegate decode="xps:mono" stealth="True" command="&quot;gxps&quot; -dQUIET
> -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0
> -dGridFitTT=2 &quot;-sDEVICE=pbmraw&quot; -dTextAlphaBits=%u
> -dGraphicsAlphaBits=%u &quot;-r%s&quot; %s &quot;-sOutputFile=%s&quot;
> &quot;%s&quot;"/>
> </delegatemap>
> 
> 
> 
> 
> On Oct 25, 2010, at 10:29, John B Brown wrote:
> 
>> > Ryan Schmidt wrote:
>>> >> On Oct 24, 2010, at 22:46, John B Brown wrote:
>>>> >>>  The version in /opt/local/bin is 1.0.6, installed with texlive. There
>>>> is another bzip2 in /user/bin which is version 1.0.5. It was put there with
>>>> the latest combined Apple update, Mac OS 10.6.4. I'll just use rm on it.
>>>> That should fix my "bug" problems with bzip2.
>>> >> Removing parts of Mac OS X is probably not a good idea; there may be
>>> other parts of Mac OS X that rely on bzip2 being there.
>>>> >>>  It's nice that the xcode compiler found that, or the source code was
>>>> set up to look for it. It's too bad the folk at Apple didn't use the later
>>>> version of bzip2 in their update load.
>>> >> Perhaps Apple will update bzip to 1.0.6 in an upcoming security update.
>> > 
>> >  Would copying the bzip2 from the port tree into /usr/bin work without
>> problems?
> 
> In general it's not a good idea to replace Apple software with MacPorts
> versions, but in this particular case that's probably ok to do since it's just
> a minor version bump to fix a bug. You may want to look at "port contents
> bzip2" to see what all other files you may also want to copy / replace.
> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20101025/c696d011/attachment.html>


More information about the macports-users mailing list