Author Topic: Cleaning up Database of smaller JPEGs  (Read 1670 times)

Offline StanleyLeary

  • Newcomer
  • *
  • Posts: 22
    • View Profile
    • Stanley Leary: Storyteller
Cleaning up Database of smaller JPEGs
« on: October 17, 2022, 02:16:39 PM »
When creating my database, I selected many hard drives and only imported the JPEGs. Therefore, no RAW, Movies, PDFs, PNGs, GIFs, or documents were imported, only jpegs.

The problem is that it imported so many smaller versions of a larger file.

What is the best and easiest way to get rid of all jpegs lower than 2000 pixels on the long side?

I want to select the entire database of 751000 images and then purge those smaller jpegs. I know it will probably take time, but thinking I could start the process and go to bed and wake up to all those images at least selected to then purge from the database.

Any tips are much appreciated.
Stanley Leary - Storyteller
404-786-4914 Cell
stanley@stanleyleary.com | Website: https://stanleyleary.com/
Blog: https://picturestoryteller.com/

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Cleaning up Database of smaller JPEGs
« Reply #1 on: October 17, 2022, 02:43:31 PM »
Stanley,

When creating my database, I selected many hard drives and only imported the JPEGs. Therefore, no RAW, Movies, PDFs, PNGs, GIFs, or documents were imported, only jpegs.

The problem is that it imported so many smaller versions of a larger file.

What is the best and easiest way to get rid of all jpegs lower than 2000 pixels on the long side?

I want to select the entire database of 751000 images and then purge those smaller jpegs. I know it will probably take time, but thinking I could start the process and go to bed and wake up to all those images at least selected to then purge from the database.

This search query should result in a contact sheet that has all of the images that either side is less than 2000 pixels on a side:

(width < 2000) and (height < 2000)

There is no way to query the 'long side' directly.  There will be no other images in the contact sheet but what matches this query.

If you delete the items (Remove) from the database and do not also delete them on disk, then they'll all return if you do a Scan to Catalog or a Catalog Sync.

If you need these smaller versions but don't want them in the catalog again, you could put them into a named folder and then use the pattern matching feature of Catalog Sync to ignore those named folders.

-Kirk
« Last Edit: October 17, 2022, 03:24:56 PM by Kirk Baker »

Offline StanleyLeary

  • Newcomer
  • *
  • Posts: 22
    • View Profile
    • Stanley Leary: Storyteller
Re: Cleaning up Database of smaller JPEGs
« Reply #2 on: October 23, 2022, 10:35:00 AM »
Thank you so very much. Your suggestion helped to clean up my database a great deal.
Stanley Leary - Storyteller
404-786-4914 Cell
stanley@stanleyleary.com | Website: https://stanleyleary.com/
Blog: https://picturestoryteller.com/