Sorting images to go into folders named by image dimensions

Started by KevinVideo, November 11, 2020, 05:21:44 PM

Previous topic - Next topic

KevinVideo

I have thousands of gif files that I need to sort out for a project. I would like to sort them into new folders that are created and named to whatever that file's dimensions are. Is there a way to do this with exiftool from the command line?

StarGeek

Yes, exiftool can do this.  As a basic example to sort images, you could use the ImageSize composite tag.
exiftool "-Directory</path/to/sorted/$ImageSize/"  /path/to/files
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

KevinVideo