ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: and78386 on October 25, 2022, 06:19:42 AM

Title: Filter JPGs by megapixel size
Post by: and78386 on October 25, 2022, 06:19:42 AM
Hi all,

Windows 10 user here. I have a big folder with many JPGs in it.

I want to move all JPGs with a megapixel size smaller than 12 megapixel to a separate folder.

How can you do that?

Cheers,
Andreas
Title: Re: Filter JPGs by megapixel size
Post by: Phil Harvey on October 25, 2022, 07:14:46 AM
Hi Andreas,

Try this:

exiftool -directory=DESTDIR -if "$megapixels < 12" -ext jpg SOURCEDIR

- Phil
Title: Re: Filter JPGs by megapixel size
Post by: and78386 on October 25, 2022, 08:27:48 AM
Works great, thank you, great tool!