Jump to content

ImageMagick - Whole Directories


Edd
 Share

Recommended Posts

I've done a few searches and went on imagemagick's site but they haven't documented anything about applying commands to whole folders/multiple images. Surely, you can apply commands to a whole folder of images? I want to rotate about 100 images by 90 degress and I don't really want to do each individually. Anyone know how I can apply it to all images at once?

Thanks :)

Link to comment
Share on other sites

Yes, you can do it with a little bash script.

 

Assume that you have some ImageMagick command line, like, say, this:

convert X.png -shear 5 output/X.png

You can do this on a whole folder of things directly from the command line like this:

for FILE in *; do convert ${FILE} -shear 5 output/${FILE}; done

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...