Page 1 of 1

Error converting CR2 an JPG files

Posted: 2011-01-17T02:19:23-07:00
by TechnoPhil
Hi there,
i can't undestand this error that never appear before:

Code: Select all

convert: missing an image filename `prova*.JPG' @ error/convert.c/ConvertImageCommand/2970.
The command used to convert the imeges is:

Code: Select all

convert -quality 85 -density 72 -resize 800x533 -fill white -pointsize 15 -font Times-BoldItalic -draw "text 10,15 '© TechnoPhil - www.technophil.sm' " *.JPG
Also i have a similar error converting CR2 files:

Code: Select all

dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
  Referenced from: /opt/local/bin/ufraw-batch
  Reason: image not found
mogrify: 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.
mogrify: unable to open image `/var/tmp/magick-YqTtMq1M.ppm': No such file or directory @ error/blob.c/OpenBlob/2584.
Command used is:

Code: Select all

sudo mogrify -format JPG -quality 85 -density 72 -resize 2000x1333 -fill white -pointsize 40 -font Times-BoldItalic -draw "text 20,50 '© TechnoPhil - www.technophil.sm' " *.CR2
Can you help me please?
I installed ImageMagick on MacPorts on my Macintosh.

I tried to find other similar errors but i didn't find it yet.
Best regards

Re: Error converting CR2 an JPG files

Posted: 2011-01-17T14:41:11-07:00
by fmw42
convert: missing an image filename `prova*.JPG' @ error/convert.c/ConvertImageCommand/2970.
You only provided one image. You need to specify two (one input and one output).

dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
Referenced from: /opt/local/bin/ufraw-batch
Reason: image not found
mogrify: 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.
mogrify: unable to open image `/var/tmp/magick-YqTtMq1M.ppm': No such file or directory @ error/blob.c/OpenBlob/2584.

seems like ufraw delegate library in mis-installed or in the wrong location for IM to find it.

Re: Error converting CR2 an JPG files

Posted: 2011-01-18T01:06:52-07:00
by TechnoPhil
fmw42 wrote:
convert: missing an image filename `prova*.JPG' @ error/convert.c/ConvertImageCommand/2970.
You only provided one image. You need to specify two (one input and one output).

Are you shure? I want to convert files in batch, how can i do? I cannot set an output name because it would be the same.

dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib
Referenced from: /opt/local/bin/ufraw-batch
Reason: image not found
mogrify: 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.
mogrify: unable to open image `/var/tmp/magick-YqTtMq1M.ppm': No such file or directory @ error/blob.c/OpenBlob/2584.

seems like ufraw delegate library in mis-installed or in the wrong location for IM to find it.
How can i fix this problem?

Re: Error converting CR2 an JPG files

Posted: 2011-01-18T11:18:21-07:00
by fmw42
convert does not do batch processing. See mogrify (but it only makes one ouput for each input and does not allow multiple input images.)

see http://www.imagemagick.org/Usage/basics/#mogrify


to check your delegates, use

convert -list configure

and look for the list of DELEGATES (not sure what it is called on Windows)

You need to install any delegates that you want to use prior to installing IM (or reinstall IM after adding any).

Re: Error converting CR2 an JPG files

Posted: 2011-01-18T12:06:41-07:00
by TechnoPhil
Thank you for your answer!
Now i'm trying to install ufraw and then imagemagick!

Re: Error converting CR2 an JPG files

Posted: 2011-01-19T03:24:58-07:00
by TechnoPhil
On the other hands i prefer to use dcraw because is more quick then ufraw.
In macintosh is not easy to install ufraw because there are lot's of dependencies and it takes 2 houres more or less!

Re: Error converting CR2 an JPG files

Posted: 2011-01-19T09:16:02-07:00
by TechnoPhil
This is the right command:

Code: Select all

for i in *.CR2; do newname=$(echo $(basename "$i" ".CR2").jpg); dcraw -c -w -W -v -h "$i" | cjpeg -quality 95 -optimize -progressive > "$newname"; exiftool -overwrite_original -tagsFromFile "$i" "$newname"; done