Error converting CR2 an JPG files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Error converting CR2 an JPG files

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error converting CR2 an JPG files

Post 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.
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Error converting CR2 an JPG files

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error converting CR2 an JPG files

Post 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).
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Error converting CR2 an JPG files

Post by TechnoPhil »

Thank you for your answer!
Now i'm trying to install ufraw and then imagemagick!
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Error converting CR2 an JPG files

Post 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!
User avatar
TechnoPhil
Posts: 22
Joined: 2010-10-27T08:21:15-07:00
Authentication code: 8675308
Location: San Marino

Re: Error converting CR2 an JPG files

Post 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
Post Reply