I wanted to resize a batch of Image using ImageMagick.
I used this this command found on stackOverflow.
There are two directory on the same level
- "img_resize" where I want to put my resized images.
- "image_models" where there are my images.
I used:
magick mogrify -path "img_resize" -resize 512x512 -gravity Center -extent 512x512 "image_models"
And got:
mogrify: unable to open image 'img_resize': Permission denied @ error/blob.c/OpenBlob/3497.
mogrify: no decode delegate for this image format `' @ error/constitute.c/ReadImage/556.
I tried without using two directory:
cd image_models
magick mogrify -resize 512x512 -gravity Center -extent 512x512
It doesn't show errors; But still didn't do anything.
Therefore, the "convert" command work well. The issue come from mogrify.
I'm using windows 10. I used the Terminal and the Terminal run as Admin.
I also tried with ./dir instead of "dir"
Thanks in advance.