/ Published in: Bash
Input: .jpg images of current directory\r\n\r\nOutput: the thumbnails will be generated in \'thumb\' folder
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -maxdepth 1 -iname '*jpg' -exec convert {} -thumbnail x200 -resize '200x<' -resize 50% -gravity center -crop 100x100+0+0 +repage -format jpg -quality 91 thumb/{} \;
URL: http://www.imagemagick.org/Usage/thumbnails/#fit