JPEG
Aperture: Delete JPEGs Imported As RAW+JPEG
2007-09-27
Josh and Ellen Anon have a very interesting post and discussion going on at O'Reilly. The topic is this: suppose you have lots and lots of images that were shot as RAW+JPEG in your Aperture library and you no longer want the JPEGs? They can use up a ton of space. How do you get rid of the JPEGs?
The short answer is that you don't. At least not with the tools supplied in Aperture, since Aperture treats the RAW file and the JPEG as a single composite master and won't let you do anything with them individually except create a new master from the JPEG. That new master can be deleted, but it doesn't buy you anything since the original JPEG is still there with the RAW file.
I have as technique that I think is better then Ellen and Josh's. It uses only the Finder and doesn't require any Terminal typing or scripts. And I don't leave any files behind. So without further ado, I'll show you what I do.
[Update: Aperture.fr has an Automator action that achieves the opposite: gets rid of the RAW files and leaves the JPEGs. It does, however, lose any adjustment history. Site is in French]
Here is a project called Yard shoot inside a blue folder:

All three of the images are RAW+JPG. Here they are:

I'll look inside the project to see how it is organized. I open up my Aperture library with control-click and select Show Package Contents, then navigate to the Z folder and then control-click on the Yard shoot project file and select Show Package Contents again. Here are all the files:

I can see the RAW files (CR2) and their JPEG (JPG)sisters. I can also see the apfiles which contain Aperture's information about the image files and the apmaster file that documents the master. What I want to do is to get rid of the JPG files and their apfiles, but leave the CR2 files alone and not leave the apmaster file in a state that will confuse Aperture. Also notice the JPEG files in there that are in the Previews and Thumbnails folders. Those are the previews used for iLife and other applications, and I may want to keep those.
First I export the project to a temporary location. It looks like this:

It's a package just like the library, so I control-click and select Show Package Contents to view its insides:

I type .JPG into the search box top right and press return:

The Finder window changes to show me the apfiles and the images that match. I can tell the image files apart by looking at the pixel sizes underneath.
If I want to delete all the JPEG files (including the previews) then this step is easy. Select all with command A and delete them with command Delete. Command delete does not appear to do anything at all, but actually it has moved the files to trash. Close the window.
If I want to delete only some of the JPEGs or if I want to leave the previews alone then I have to be selective. By command clicking on all the images that I want to delete, I can make a selection. I'm deleting the JPEGs for images 2563 and 2565 in this case, so I select those.
While it is not critical that the apfiles get deleted too it can be good to be neat. Making this additional selection can be made much easier with the following trick. Press command J to bring up the Finder view options and make sure that This window only is selected. Now select Group By Date and within the group, By Name:

The window changes, but the selections are still there:

Now I can easily command click the apfiles that immediately follow the images already selected and add them to my selection. I do that, and then press command Delete and close the window.
Now if I look in the exported project I see that the JPEGs I wanted gone are gone and the JPEGs I wanted to keep are still there:

I create a new blue folder for my project to avoid confusion, and drag the fixed project in:

Now the images I removed the JPEGs from no longer have the option to create a new master from the JPEG:

After checking the project, I delete the temporary copy and the original. I am done.
Why do all this with an external project? One reason is that it is much safer to operate on a copy of the data than the original, so exporting the project satisfies that urge. The other reason is that the result is much neater. When the project is imported, Aperture does some checking and fixes up the apmaster files.
The original apmaster files have the JPEG listed (originalJPEGFileUUID):

But the fixed and imported image no longer lists the JPEG:

Hopefully Apple will add this facility into a future version of Aperture and we can avoid jumping though all these hoops entirely.
The short answer is that you don't. At least not with the tools supplied in Aperture, since Aperture treats the RAW file and the JPEG as a single composite master and won't let you do anything with them individually except create a new master from the JPEG. That new master can be deleted, but it doesn't buy you anything since the original JPEG is still there with the RAW file.
I have as technique that I think is better then Ellen and Josh's. It uses only the Finder and doesn't require any Terminal typing or scripts. And I don't leave any files behind. So without further ado, I'll show you what I do.
[Update: Aperture.fr has an Automator action that achieves the opposite: gets rid of the RAW files and leaves the JPEGs. It does, however, lose any adjustment history. Site is in French]
Here is a project called Yard shoot inside a blue folder:
All three of the images are RAW+JPG. Here they are:

I'll look inside the project to see how it is organized. I open up my Aperture library with control-click and select Show Package Contents, then navigate to the Z folder and then control-click on the Yard shoot project file and select Show Package Contents again. Here are all the files:

I can see the RAW files (CR2) and their JPEG (JPG)sisters. I can also see the apfiles which contain Aperture's information about the image files and the apmaster file that documents the master. What I want to do is to get rid of the JPG files and their apfiles, but leave the CR2 files alone and not leave the apmaster file in a state that will confuse Aperture. Also notice the JPEG files in there that are in the Previews and Thumbnails folders. Those are the previews used for iLife and other applications, and I may want to keep those.
1. Export the project
First I export the project to a temporary location. It looks like this:

2. Open up the project package
It's a package just like the library, so I control-click and select Show Package Contents to view its insides:

3. Find all the JPEG files in the package
I type .JPG into the search box top right and press return:

The Finder window changes to show me the apfiles and the images that match. I can tell the image files apart by looking at the pixel sizes underneath.
4. Select all the files and delete them
If I want to delete all the JPEG files (including the previews) then this step is easy. Select all with command A and delete them with command Delete. Command delete does not appear to do anything at all, but actually it has moved the files to trash. Close the window.
4a. or Select some of the files and delete them
If I want to delete only some of the JPEGs or if I want to leave the previews alone then I have to be selective. By command clicking on all the images that I want to delete, I can make a selection. I'm deleting the JPEGs for images 2563 and 2565 in this case, so I select those.
While it is not critical that the apfiles get deleted too it can be good to be neat. Making this additional selection can be made much easier with the following trick. Press command J to bring up the Finder view options and make sure that This window only is selected. Now select Group By Date and within the group, By Name:

The window changes, but the selections are still there:

Now I can easily command click the apfiles that immediately follow the images already selected and add them to my selection. I do that, and then press command Delete and close the window.
Now if I look in the exported project I see that the JPEGs I wanted gone are gone and the JPEGs I wanted to keep are still there:

5. Reimport the project into Aperture
I create a new blue folder for my project to avoid confusion, and drag the fixed project in:

Now the images I removed the JPEGs from no longer have the option to create a new master from the JPEG:

6. Clean up
After checking the project, I delete the temporary copy and the original. I am done.
Why do all this with an external project? One reason is that it is much safer to operate on a copy of the data than the original, so exporting the project satisfies that urge. The other reason is that the result is much neater. When the project is imported, Aperture does some checking and fixes up the apmaster files.
The original apmaster files have the JPEG listed (originalJPEGFileUUID):

But the fixed and imported image no longer lists the JPEG:

Hopefully Apple will add this facility into a future version of Aperture and we can avoid jumping though all these hoops entirely.
|
Aperture: What To Do If Your Camera RAW Is Not Supported?
2007-09-25
A frustration with buying the latest and greatest DSLR is that Aperture won't support the RAW format straight away. We're forced to wait for an update to add that capability. This is one reason that I went for the Canon 30D rather than the 40D: it's supported and has been for a long time.
Derrick Story at O'Reilly Digital Media has a partial answer: shoot RAW+JPEG and view the JPEGs in Aperture.
Derrick Story at O'Reilly Digital Media has a partial answer: shoot RAW+JPEG and view the JPEGs in Aperture.
Aperture: Recovering Highlights Is Tricky
2007-08-19
I've been playing with all the options on the 30D, and today tried RAW+JPEG to see if it is useful. I didn't like the images it produced, but something interesting did come of it: an exercise in highlight recovery.
The whales were having a tea party on the deck and to record the event I shot one frame of RAW+JPEG. I imported the images and accessed the JPEG sister by control-clicking on an image and selecting New Version from Master JPEG:

Here is a part of the JPEG version:

It's not sharp and I don't like the colors. But I can see detail in the white fin on the left. Now here is the RAW as processed by Aperture:

Sharper and nicer, but the fin is blow out. The blown out pixels are on the right of the histogram:

The JPEG version doesn't have this, so I know it's not inherent in the image:

How do I get the fin back? And why did Aperture do this to me?
First I turn the exposure way down. That brings the highlights back, but it kills the rest of the image. So I move the brightness and saturation up to compensate and then twiddle with the contrast to get a reasonable image with some loss of shadow detail:
Finally I get the shadows back with the Highlights and Shadows control:

And my final result is pretty pleasing:

The bucket is much better and the yellow color can be seen reflecting in other objects. The fin is how I want it, but the rest of the whale is visible too. The histogram looks entirely different now I have finished:

I wonder why this is so hard to do? Did I just use the wrong technique, or is there something missing from Aperture here?
The whales were having a tea party on the deck and to record the event I shot one frame of RAW+JPEG. I imported the images and accessed the JPEG sister by control-clicking on an image and selecting New Version from Master JPEG:

Here is a part of the JPEG version:

It's not sharp and I don't like the colors. But I can see detail in the white fin on the left. Now here is the RAW as processed by Aperture:

Sharper and nicer, but the fin is blow out. The blown out pixels are on the right of the histogram:

The JPEG version doesn't have this, so I know it's not inherent in the image:

How do I get the fin back? And why did Aperture do this to me?
First I turn the exposure way down. That brings the highlights back, but it kills the rest of the image. So I move the brightness and saturation up to compensate and then twiddle with the contrast to get a reasonable image with some loss of shadow detail:

Finally I get the shadows back with the Highlights and Shadows control:

And my final result is pretty pleasing:

The bucket is much better and the yellow color can be seen reflecting in other objects. The fin is how I want it, but the rest of the whale is visible too. The histogram looks entirely different now I have finished:

I wonder why this is so hard to do? Did I just use the wrong technique, or is there something missing from Aperture here?
The Bagelturf site welcomes Donations of any size