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 ?
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.