Hi, I'm running IM and ufraw from MacPorts on OSX10.6.
If I run this command with 'sudo', it works...
/opt/local/bin/convert '/Volumes/Data/Documents/dev3.8/include/../filestore/2_0ce3fd4ac024744/2_b9724fc4f79ae9a.cr2'[0] +matte -quality 90 -verbose +matte +profile "*" -colorspace RGB -resize 999999x999999">" '/Volumes/Data/Documents/dev3.8/include/../filestore/2_0ce3fd4ac024744/2hpr_1668867d01c52b0.jpg'
but when I run it as another user (for example the apache user via php), I'm getting this error:
convert: delegate failed `"/opt/local/bin/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 `/Volumes/Data/Documents/dev3.8/filestore/tmp/magick-r33DuQoi.ppm': No such file or directory @ error/blob.c/OpenBlob/2587. convert: missing an image filename `/Volumes/Data/Documents/dev3.8/include/../filestore/2_0ce3fd4ac024744/2hpr_1668867d01c52b0.jpg' @ error/convert.c/ConvertImageCommand/2974.
I've been wrestling with this problem for over a day now. It seems clearly a permissions issue, but the files are all 777, and I haven't found any clues about where else I might need to open them up.
Temporary files do show up briefly in the tmp folder, but none with .ppm extensions.
I'm also willing to pay for help on this.
CR2 delegate fails, but not when using sudo
Re: CR2 delegate fails, but not when using sudo
Here is some information about my versions, though as I said, it works for sudo (but only sudo), so I don't think there is anything essentially wrong with the ability to convert.
ufraw-batch --version
ufraw-batch 0.17
EXIV2 0.21
JPEG enabled.
TIFF enabled.
PNG enabled.
FITS enabled.
ZIP enabled.
convert --version
Version: ImageMagick 6.6.8-1 2011-03-23 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL
convert -list configure
Path: /opt/local/lib/ImageMagick-6.6.8/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC /usr/bin/gcc-4.2 -std=gnu99 -std=gnu99
CFLAGS -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -pipe -O2 -arch x86_64 -Wall -D_THREAD_SAFE -pthread
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-zlib' '--with-modules' '--with-xml' '--with-x' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-quantum-depth=16' 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.2' 'CXXFLAGS=-pipe -O2 -arch x86_64'
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick
CXX /usr/bin/g++-4.2
CXXFLAGS -pipe -O2 -arch x86_64 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fftw fontconfig freetype gs jpeg jng lcms mpeg png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.2' 'LDFLAGS=-L/opt/local/lib -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-openexr=no --with-rsvg=no --with-wmf=no --with-perl=no
EXEC-PREFIX /opt/local
FEATURES OpenMP
HOST x86_64-apple-darwin10.4.2
LDFLAGS -L/opt/local/lib -L/opt/local/lib -arch x86_64 -L/opt/local/lib
LIB_VERSION 0x668
LIB_VERSION_NUMBER 6,6,8,1
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfftw3 -L/opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lclparser -Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries -lm -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2011-03-23
VERSION 6.6.8
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
NAME ImageMagick
ufraw-batch --version
ufraw-batch 0.17
EXIV2 0.21
JPEG enabled.
TIFF enabled.
PNG enabled.
FITS enabled.
ZIP enabled.
convert --version
Version: ImageMagick 6.6.8-1 2011-03-23 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL
convert -list configure
Path: /opt/local/lib/ImageMagick-6.6.8/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC /usr/bin/gcc-4.2 -std=gnu99 -std=gnu99
CFLAGS -D_THREAD_SAFE -D_THREAD_SAFE -pthread -fopenmp -pipe -O2 -arch x86_64 -Wall -D_THREAD_SAFE -pthread
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' '--enable-static' '--disable-ltdl-install' '--with-frozenpaths' '--without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--with-tiff' '--with-zlib' '--with-modules' '--with-xml' '--with-x' '--without-perl' '--without-fpx' '--without-jbig' '--without-jp2' '--without-wmf' '--without-gvc' '--without-rsvg' '--without-lqr' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-quantum-depth=16' 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.2' 'CXXFLAGS=-pipe -O2 -arch x86_64'
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick
CXX /usr/bin/g++-4.2
CXXFLAGS -pipe -O2 -arch x86_64 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fftw fontconfig freetype gs jpeg jng lcms mpeg png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch x86_64' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.2' 'LDFLAGS=-L/opt/local/lib -arch x86_64' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-gvc=no --with-jp2=no --with-lqr=no --with-openexr=no --with-rsvg=no --with-wmf=no --with-perl=no
EXEC-PREFIX /opt/local
FEATURES OpenMP
HOST x86_64-apple-darwin10.4.2
LDFLAGS -L/opt/local/lib -L/opt/local/lib -arch x86_64 -L/opt/local/lib
LIB_VERSION 0x668
LIB_VERSION_NUMBER 6,6,8,1
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfftw3 -L/opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lclparser -Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries -lm -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2011-03-23
VERSION 6.6.8
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
NAME ImageMagick
Re: CR2 delegate fails, but not when using sudo
Solved.
the --wb=camera option was causing a segmentation fault for ufraw-batch
Not sure why it only occurs for some users, but removing the option from the delegates.xml command fixes the problem.
the --wb=camera option was causing a segmentation fault for ufraw-batch
Not sure why it only occurs for some users, but removing the option from the delegates.xml command fixes the problem.
Re: CR2 delegate fails, but not when using sudo
Thanks for alerting us to this problem. We'll remove this option so others do not run into the same failure as you did.