I'm trying to convert(compress) a bunch of JPEG images using imagemagick command mogrify, keeping the original file in the same directory. I'm typing in terminal window : mogrify -quality 25% *.JPEG con-%002d.JPEG then I get the error : mogrify: unable to open image `con-%002d.JPEG': No such file or directory @ error/blob.c/OpenBlob/2712. How can I solve this error? I have run : identify -verbose * | grep Format and the result is for all files : Format: JPEG (Joint Photographic Experts Group JFIF format) exif:thumbnail:JPEGInterchangeFormat: 10718 exif:thumbnail:JPEGInterchangeFormatLength: 8223
My system is Xubuntu 16.04, I appreciate some help, thanks Vladi.
mogrify
doesn't have an output file option: it always replaces the original files, andcon-%002d.JPEG
is treated as just another input file (which doesn't exist) after the*.JPEG
list.ffmpeg
which does support sequential output naming.