Announcement

Collapse
No announcement yet.

Filter JPGs by megapixel size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Filter JPGs by megapixel size

    Hi all,

    Windows 10 user with IrfanView 4.6 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

    #2
    You can almost do it in Windows Explorer. Show file details, enable the column for dimension (in pixels), and sort the file list by dimensions.
    3000x4000 = 12 Megapixels, but there may be some images with different aspect ratios that are less than 12 Megapixels. I did not find any option to show a column with Megapixel sizes.

    Click image for larger version

Name:	Sort by Dimensions.png
Views:	227
Size:	5.4 KB
ID:	96062
    Before you post Edit your profile • IrfanView 4.72 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpMore SkinsFastStone CaptureUploads

    Comment


      #3
      The task can be solved with this command:

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

      (see here: https://exiftool.org/forum/index.php?msg=75820)

      Comment

      Working...
      X