Code: Select all
C:\redacted>convert *.png *.jpg
convert.exe: unable to open image `*-0.jpg': Invalid argument @ error/blob.c/OpenBlob/2643.
C:\redacted>convert 11-2013_1808_1.png 11-2013_1808_1.jpg
C:\redacted>convert *.png *.jpg
C:\redacted>
Code: Select all
C:\redacted>convert *.png *.jpg
convert.exe: unable to open image `*-0.jpg': Invalid argument @ error/blob.c/OpenBlob/2643.
C:\redacted>convert 11-2013_1808_1.png 11-2013_1808_1.jpg
C:\redacted>convert *.png *.jpg
C:\redacted>
The target "*.jpg" is incorrect.seanspotatobusiness wrote:Code: Select all
C:\redacted>convert *.png *.jpg convert.exe: unable to open image `*-0.jpg': Invalid argument @ error/blob.c/OpenBlob/2643. C:\redacted>convert 11-2013_1808_1.png 11-2013_1808_1.jpg C:\redacted>convert *.png *.jpg C:\redacted>
Code: Select all
convert *.png 11-2013_1808_%d.jpg
Thanks. I don't understand why ImageMagick needs a jpg file to already exist though. What I really wanted was each file to have the same name as the corresponding png, just in jpg format with a jpg extension.glennrp wrote:The target "*.jpg" is incorrect.seanspotatobusiness wrote:Code: Select all
C:\redacted>convert *.png *.jpg convert.exe: unable to open image `*-0.jpg': Invalid argument @ error/blob.c/OpenBlob/2643. C:\redacted>convert 11-2013_1808_1.png 11-2013_1808_1.jpg C:\redacted>convert *.png *.jpg C:\redacted>
First attempt: *.jpg does not exist so it failed.
Second attempt: created 11-2013_1808_1.jpg
Third attempt: *.jpg is now 11-2013_1808_1.jpg so that is the
target and you get the output files you saw.
First attempt would have worked if you used a template name rather than *.jpgNow you'll get 11-2013_1808_0.jpg, 11-2013_1808_1.jpg, etc.Code: Select all
convert *.png 11-2013_1808_%d.jpg
Code: Select all
mogrify -format jpg *.png