# 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' *```