I'm trying to use ImageMagick for compressing images on my web-site. I've found a nice algorithm, implemented it, but getting error: "mogrify: unable to open image `thumb_preview_uVACfM5fhbE87num1fYGlQsmall.jpeg': No such file or directory @ error/blob.c/OpenBlob/2695." Seems that I'm missing something, but can't figure out what exactly. Here's the command (i split it on several lines):
mogrify 'uploads/images/preview_uVACfM5fhbE87num1fYGlQsmall.jpeg'
-path uploads/images -filter Triangle -define filter:support=2
-thumbnail 100 -unsharp 0.25x0.25+8+0.065 -dither None -posterize 136
-quality 82 -define jpeg:fancy-upsampling=off
-define png:compression-filter=5 -define png:compression-level=9
-define png:compression-strategy=1 -define png:exclude-chunk=all
-interlace none -colorspace sRGB
-strip thumb_preview_uVACfM5fhbE87num1fYGlQsmall.jpeg