Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Batch delete the JPEG's from all my RAW/JPEG pairs?

What's the best way to batch delete the JPEG's from all my RAW+JPEG pairs?


I have a 88k image library many of which are RAW+JPEG pairs. I've got about 50GB's left on my 2TB internal hard drive and need to free up space. I'm combing through the years worth of data attempting to clean it all up but I thought dumping the JPEG's would be a quick and easy gain. Can anyone thing of a safe way to do this? Creating an album of all my pairs is easy enough but I can't find a "delete JPEG" option.


Thanks!

-Jared

www.rogersglobal.com

Aperture 3, Mac OS X (10.6.7)

Posted on Jul 4, 2011 10:32 AM

Reply
17 replies

Jul 4, 2011 11:49 AM in response to Neil G

A suggestion for the future... (Since it appears that you aren't a RAW purist, so JPEGs do the job much of the time. Maybe obvious.)


When you first import your images, just import the JPEG files. Before you reformat your cards, skim the JPEGs and Flag the one's that might benefit from tweaking the RAW files. Go back and import the matching flagged RAW files, either as paired or separate files.


Paired vs. separate masters is a nice feature but I can't present a sound reason why you shouldn't/wouldn't want to be able to separate paired files and delete one or the outer file type.

Jul 4, 2011 3:02 PM in response to RogersGlobal

I wanted to do the same thing awhile back and found out it couldn't be done. I'm thinking of a brute force method to delete them but I haven't tried it and I don't know what could go wrong. Use my idea at your own peril.


You could go into the library package and find the matching RAW and JPG files in the Masters folder. They are organized by year/month/day for when they were imported, not shot. Delete the JPG files (or move them out temporarily to see what happens first).


I'm not saying this is a good idea. It's just an idea.

Jul 4, 2011 11:07 PM in response to Neil G

I think this might be one of those rare occasions when reaching under the hood can work. I decided to test my idea and deleted the JPG image from a RAW+JPEG pair (after quitting Aperture). Before I did it Aperture was set to use the RAW file as the master.


After deleting the JPEG, there was no indication on the photo inside Aperture of any issue. One thing I noticed is the "Set JPEG as Master" contextual menu command disappeared from that photo and the corresponding Photos->Set JPEG as Master command was grayed out. Aperture kept the "R" badge on the image thumbnail but it knew there was no JPEG and removed the option to switch to it from the menu.


Just for fun, I quit Aperture, put the photo back where it came from and restarted Aperture. All was back to normal.

Jul 5, 2011 11:34 AM in response to Thomas Emmerich

I'm not a RAW purist. So Neil I guess you're right. At this point I do only shoot RAW though so they're no decisions to make on pairing.


I guess the biggest problem I face is that I'm running out of space faster than I can create more. Thanks Thomas for testing the theory by separating your images. I think it'll work. The real question now is could I create a workflow that would batch them all out... A large portion of my collection are JPEG only from when I just took scans of my 35mm negatives. So I would need to find a way to:


  • Isolate the paired JPEGS
  • Unlink them? (Perhaps this would be redundant and I should just move on to deletion)
  • Purge them from my Aperture library
  • Delete them completely

Jul 5, 2011 8:43 PM in response to RogersGlobal

Again, another untested idea for you. You should try it with one image first and Please! make sure your library is backed up first.


Select the Photos group from the Library pane to show all photos in the browser.

Set your view to Browser only.

Clear any filters in the top right if they are set.

Click the Filter icon at the top right.

If it's not already there, add the rule for "File Type" using the popup menu.

Set the filter to show Filetype Is RAW+JPEG.


You are now looking at all of your RAW+JPEG pairs in your entire library.

Make sure all the images are set to RAW as Master.


Select all the photos (test just one first!) and File->Relocate Masters. Choose an external disk with enough room.

Once all the masters are moved out of the library to a new location (this could take awhile if you have many photos), Navigate to the new location of the masters and remove the JPEGs. Sort by filetype in the Finder to make it easier.


Back in Aperture, Select all the RAW+JPEG pairs in the filtered browser and choose File->Consolidate Masters. (Now that the JPEGs are gone, I don't know if Aperture will complain. That's why you should test this first on 1 image)


If this worked, you should now have only RAW masters in your library.


I repeat myself: I didn't test this. Please test on a fully backed up library on only 1 image first. Good luck.

Jul 6, 2011 6:24 AM in response to RogersGlobal

This has become a really interesting thread with great ideas.


Another way out of your disk capacity crisis is to selectively move Masters to another drive. I'm guessing you have an iMac, so that drive would be external.


You do this with Aperture's "Relocate Masters..." in the File menu.


Let's assume that photos which are older than a certain date of shooting AND have a rating below "X" stars are ones that you could move to a slower disk with causing you pain.


So set up a Browser filter for those conditions, select all the images and do the "Relocate Masters..." with a destination on the other drive. This will physically move all the masters which were selected to that drive, shrinking your library.


Important points.


Those external masters will NOT be included in an Aperture Vault. YOU must back them up.


NEVER mess with those Masters. Don't move them or do anything else with Finder. If they need to be moved, used Aperture's "Relocate Masters" again, otherwise Aperture will get confused.


This solution may give more long term expandability

Jul 6, 2011 5:13 PM in response to Thomas Emmerich

Running a few test runs now...


I have a 27" iMac quad core 2.93 GHz i7, 16 GB DDR3 worth of ram, a 2 TB internal HD with a 4TB external HD that's running Time Machine.


I've got 21913 RAW+JPEG pairs so this should be fun... I THINK that I'll only pickup a 100GB-150GB of space if I can purge the JPEGS... Something I need to make sure of is that if I relocate the RAW masters to and them from my external drive it doesn't mess up any metadata. When I move things manually it copies the data rather then moves it. The issue is that when images that don't contain metadata indicating when they were actually shot are copied the file creation date becomes "shot date" by default...

Jul 6, 2011 5:58 PM in response to RogersGlobal

I tried one and while it appeared to work I did get an error when consolidating the jpeg. It indicated that the file could not be found. The RAW paired badge is still there but everything else appears fine.


When you hold down "option" + "command" when opening Aperture you get the option to repair permissions, repair the database, or rebuild the database. I'm going to attempt to repair the database and if that doesn't work rebuild the database. If either successfully resets it altogether as a standalone RAW I think we've found a solid solution...

Jul 6, 2011 10:20 PM in response to Thomas Emmerich

Well, to a degree.

The only issue we've identified is that Aperture continues to assign the badge. But for a 100GB space gain on what's already a 1.2TB library I'm not ready to risk 22,000 RAWS to any other possible hang-ups. I doubt there would be further complications but I need to test it more. I'll attempt to see if I hit any hang-ups with adjustments, sharing, syncing to my ipad etc.


I guess the only reason I'm not convinced is that I believe Aperture uses the JPEGS whenever possible for previews yet also uses those same previews for other automated exports.

Batch delete the JPEG's from all my RAW/JPEG pairs?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.