title: Image Magick Mogrify @ error/blob.c/OpenBlob/3497 Permission Denied
body: <p>I wanted to resize a batch of Image using ImageMagick.</p>
  
  <p>I used this <a href="https://stackoverflow.com/questions/32466048/imagemagick-convert-crop-and-resize?answertab=votes#tab-top">this command</a> found on stackOverflow.</p>
  
  <p>There are two directory on the same level</p>
  
  <ul>
  <li>"img_resize" where I want to put my resized images.</li>
  <li>"image_models" where there are my images.</li>
  </ul>
  
  <p>I used:</p>
  
  <pre><code>magick mogrify -path "img_resize" -resize 512x512 -gravity Center -extent 512x512 "image_models"
  </code></pre>
  
  <p>And got:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>I tried without using two directory:</p>
  
  <pre><code>cd image_models
  magick mogrify -resize 512x512 -gravity Center -extent 512x512
  </code></pre>
  
  <p>It doesn't show errors; But still didn't do anything.</p>
  
  <p>Therefore, the "convert" command work well. The issue come from mogrify.</p>
  
  <p>I'm using windows 10. I used the Terminal and the Terminal run as Admin. </p>
  
  <p>I also tried with ./dir instead of "dir"</p>
  
  <p>Thanks in advance.</p>