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
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

KevinVideo