Home > Uncategorized > Convert all images in a folder on linux with imagick

Convert all images in a folder on linux with imagick

Not complicated, but it took me a little while to figure it out. So here it comes :

for f in *; do convert “$f” -quality 50 “$f”; done

if you want to change the name of the output files :

for f in *; do convert “$f” -quality 50 “XXXXXX$f”; done

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment