Remove lowres files

Categories: Bash, Linux

Remove files with resolution lower than X.

Install Imagemagick and use the following command to remove files that are less than 400px in height:

identify -format "%w:%h:%f\n" * | awk -F : '$2<400 {print $3}' | xargs rm -rfv

References: https://stackoverflow.com/questions/20566114/how-to-remove-pictures-below-a-certain-resolution-from-folder

«
»