Menu Sidebar
Menu

Photo: Anemone

While I like to shoot a lot in black and white, I also love taking macro photos of flowers, and delighting in their rich colors. I’m posting three such photos today, shot in my garden, of bright summer flowers.

Link to full-size version.

Follow me on 500px, Flickr, & Instagram.

Photo: Petals

While I like to shoot a lot in black and white, I also love taking macro photos of flowers, and delighting in their rich colors. I’m posting three such photos today, shot in my garden, of bright summer flowers.

Link to full-size version.

Follow me on 500px, Flickr, & Instagram.

Photo: Dahlia and Raindrops

While I like to shoot a lot in black and white, I also love taking macro photos of flowers, and delighting in their rich colors. I’m posting three such photos today, shot in my garden, of bright summer flowers.

Link to full-size version.

Follow me on 500px, Flickr, & Instagram.

How to Work with RAW and JPEG Files in Apple’s Photos App

If you take photos with an iPhone, you don’t really pay attention to the format of the digital files it saves. They are JPEGs, the standard compressed format that has been in use for for about 25 years. They’re commonly used on digital cameras because they save a lot of space. They’re like the MP3s of image files.

With most digital cameras – other than a smartphone – you can choose the level of compression you use for your JPEGs. My Fuji X100F has two options: normal and fine. As an example, the manual explains that on an 8 GB memory card, you can store 800 photos at normal compression, but only 540 at fine compression. My Olympus Pen-F has four options: basic, normal, fine, and super-fine, which, at full-size allows you to store from 510 to 2347 photos on the same 8 GB. (Note that the Pen-F has 20 Mp while the X100F has 24 Mp, so the largest files of the former are smaller.)

But you can also choose to shoot in RAW format. This stores uncompressed files that contain the raw data that the camera’s sensor records. They are much larger – you can only store 150 or 340 of these on the same memory card with each camera – but if I retain the music comparison, they’re like the original music on a CD that hasn’t been compressed.

Apple’s Photos app supports most RAW formats. (Here is a list of the cameras that are supported.) One notable exception is my Fuji’s compressed RAW format; not only does Photos not support this, but many other photo apps can’t handle this type of file.

Raw jpegIf you shoot in RAW, you can import your photos into Apple’s Photos app just as you would do with JPEGs. And if you shoot in both RAW and JPEG – any camera that can shoot in RAW allows you to do this – Photos detects that the two photos go together, and imports them as a pair, and displays the photos with a small icon on the top right corner of a thumbnail. Photos picks the JPEG as the main photo, and this icon shows the letter J.

However, you can edit the RAW photo, and use it as the main photo. To do this, select a photo and press Return to enter edit mode. As part of the information that Photos shows about this picture, it says which format it’s in. Here, Photos tells me that the photo above is being edited in JPEG mode.

Jpeg edit

To switch to the RAW file, choose Image > Use RAW as Original, or right-click on the photo and choose Use RAW as Original. When you do this, you may notice that the photo changes a bit; it may become lighter, or have more contrast. This is because RAW files have greater dynamic range; they cover more gradations of light. You can then edit the photo the same as you would any other.

When you export the photo by dragging it from Photos to the Desktop or to a folder, it will be a JPEG, since RAW files aren’t intended to be viewed or shared. If you export it by using the File > Export command, you can choose JPEG, PNG, or TIFF format. And if you want to export the RAW file to use in another app, choose File > Export Unmodified Original for 1 Photo. This will export the RAW file, if that’s all you have, or both files, if you have a JPEG/RAW pair. But these files won’t contain any of your edits.

Apple’s Photos App and Lens Correction

When you take a digital photo, the camera you use receives light through its lens, but the light information it gets can be slightly distorted. Because of this, cameras often use lens correction to create JPEGs from the original light information, or when converting RAW files into JPEGs.

If you shoot RAW files, many apps that process these files can also apply lens correction, using metadata stored with the files, to create better images. In some cases, this can even be using a huge database of information about lenses and cameras.

It’s interesting to know that Apple’s Photos app also applies lens correction, yet doesn’t tell you anything about it. This lens correction is not only applied in the Photos app, but also within macOS; if you have a RAW file and view it using Quick Look (select the file and press the space bar), lens correction is applied.

I haven’t been able to find a database of which lenses Apple is aware of, but there is a document showing which cameras are supported for RAW files. It’s likely that Apple supports those lenses that add metadata to the RAW files, which covers most lenses people are likely to use. This said, if you’re using a non-digital lens on a camera with an adapter, you won’t get any such information; it’s possible that some third-party software may be able to apply correction for this type of lens.

So what is lens correction? Let me quote an explanation from an Adobe document about its Camera Raw app:

  • Vignetting causes the edges, especially the corners, of an image to be darker than the center.
  • Barrel distortion causes straight lines to appear to bow outward.
  • Pincushion distortion causes straight lines to appear to bend inward.
  • Chromatic aberration is caused by the failure of the lens to focus different colors to the same spot.

Here is a good explanation of these types of distortion, with a number of images showing how each one presents in photos.

Not all of these types of distortion will be obvious with all lenses; you have more pincushion distortion in a wide angle lens than a telephoto, and chromatic aberration may be very visible, or may be hard to spot, and it may depend on your subject and lighting. But have a look at an example to see how different a RAW file can look without and with lens correction.

The first screenshot below shows a file opened in Affinity Photos with the lens correction setting turned off; this makes the app display the RAW file with no alteration. The second version is from a screenshot taken when viewing the same file with Quick Look in the macOS Finder. I then scaled both screenshots to the same size.

The correction is most obvious if you look at the top corners. In correcting the distortion, the photo cuts off the corners a bit to make them straighter. You can also see an overall difference in lighting; this is a bit surprising, but both Apple Photos and Affinity Photo show the corrected photo like this. If you look very closely, you can also see the curves are a bit different, correcting the distortion.

My camera also made the same corrections to this photo in creating a JPEG. Since the information about lens distortion is included in the metadata in the RAW file, either the camera can correct when creating a JPEG or software can correct later, if you only shoot in RAW. (I generally shoot RAW + JPEG.)

Some cameras offer a setting to enable or disable lens correction, but mine don’t. And some software also has its own database of lens and camera information to correct distortion. However, “Olympus says it does not disclose its RAW file format to third-party software providers,” according to DPReview, but I see lens correction in photos shot with my Olypmus lenses in Photos and other apps. (The photo above was show with a Panasonic Lumix 20mm f 1.7 lens on an Olympus Pen-F.) It may be that software developers reverse engineer some lenses to be able to apply correction.

So why don’t camera manufacturers make better lenses? I would expect that the more expensive the lens, the less correction needed, but since this correction is possible via software, as Olympus says, quoted in this article, “[this] enables us to greatly reduce the length and volume of a lens, and gives manufacturers flexibility of small and light weight designs.”

So it’s good to know that, if you shoot RAW, Apple’s Photos applies lens correction to some or all of your images. This can save you from having to use third-party software to process your RAW files, if this distortion is problematic. It’s also interesting to know that Apple does this and doesn’t mention it; I think it would be a useful point to make to get users to stick with Apple’s simpler photo management and editing tool rather than buying a third-party app to get this feature.

(It’s interesting that DxO makes an app called DxO OpticsPro for Photos, which claims to apply optical corrections as an editing extension to Photos. However, unless it supports a much broader range of lenses and cameras than Photos itself, this optical correction is useless. It’s worth pointing out that it doesn’t support RAW files from my Fuji X100F, something that Photos does support. Go figure…)

Older Posts


Kirkville

Writings about Macs, music, and more by Kirk McElhearn