ExifTool Forum

ExifTool => Newbies => Topic started by: KevinVideo on November 11, 2020, 05:21:44 PM

Title: Sorting images to go into folders named by image dimensions
Post by: KevinVideo on November 11, 2020, 05:21:44 PM
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?
Title: Re: Sorting images to go into folders named by image dimensions
Post by: StarGeek on November 11, 2020, 05:49:12 PM
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
Title: Re: Sorting images to go into folders named by image dimensions
Post by: KevinVideo on November 11, 2020, 05:58:07 PM
Thank you very much. That did what I was trying to do!