ExifTool Forum

ExifTool => Newbies => Topic started by: lumiere on December 14, 2021, 06:11:40 PM

Title: Supposed to sort out just pictures but pdf were also sorted
Post by: lumiere on December 14, 2021, 06:11:40 PM
Hello everyone,
I have just recently used exiftool to sort out pictures across many folders and subfolders. I expected exiftool to move just picture files across but it turned out it moved also pdf files.
How can I enforce just pictures to be moved and nothing else ?
Title: Re: Supposed to sort out just pictures but pdf were also sorted
Post by: StarGeek on December 14, 2021, 06:19:25 PM
This is basically FAQ #16 (https://exiftool.org/faq.html#Q16) reversed.  Exiftool will process any of the writable Supported File Types table (https://exiftool.org/#supported) by default.  In order to limit the file types you want to process, you would use the -ext (-extension) option (https://exiftool.org/exiftool_pod.html#ext-EXT---ext-EXT--extension), either to specify the file types you want to rename, e.g. -ext jpg -ext jpeg -ext png or to exclude file types --ext pdf --ext mp4.