alex-sharoff-website/README.md
2023-11-11 10:34:31 +04:00

385 B

Useful commands

Create thumbnail (400px side max) for all jpg/JPG images in folder, move it to thumbs folder

for ext in jpg JPG; do mogrify -format $ext -path thumbs -auto-orient -thumbnail '400' *.$ext; done

Get thumbnail size for every file in folder

identify -ping -format 'image: "%[basename].%[extension]", thumbSize: {w: %[width], h: %[height]}},\n' *