File Size Mystery

Facebooktwitterlinkedin

Today’s Question: When I take a 40MB DNG file from Lightroom to Photoshop, the resulting TIFF file is 207MB. Why does the file size increase by a factor of five and is there some way to reduce the TIFF file size?

Tim’s Quick Answer: There are three basic factors at play here. First, if the Adobe DNG file was created from a proprietary RAW capture format (or was a DNG capture out of the camera), the image data within the DNG file only contains one-third of the total information in terms of pixel values (more on this in a moment). Second, the DNG format uses compression that typically results in a file size that is around 20% smaller than the original RAW capture. Third, the image sent to Photoshop was likely created as a 16-bit per channel image, which doubles the base file size.

More Detail: As you may already be aware, a RAW capture only includes one-third of the total pixel information for the image. There are exceptions and variations here, but with most cameras each individual “pixel” on the image sensor is only recording a single color value (generally red, green, or blue). Part of the process of converting the original RAW capture to a “real” image involves calculating the full color value for each pixel. The result is that the RAW capture is generally about one-third of the file size of the final image, all other things being equal.

The DNG format makes use of lossless compression that results in files that are generally smaller than the original RAW capture, assuming the DNG file was created from a proprietary RAW capture. On average I find that this compression results in a DNG file that is about 20% smaller than the original RAW capture, but your results may vary.

The original RAW capture would contain information based on either 12-bit, 14-bit, or 16-bit per channel information, depending on the specific camera. Once you convert the original capture to a pixel-based format, you have the option of rendering the image in either the 8-bit or 16-bit per channel mode. The 16-bit per channel mode image will be twice as large as the 8-bit version, all other things being equal.

Finally, there is the potential for applying compression to the TIFF image, which results in a smaller file size. For example, you can make use of LZW or ZIP compression for TIFF images created by Lightroom as part of the process of sending a photo to Photoshop. Both of these options provide lossless compression that reduces the size of the image file without any reduction in image quality.

In this case, based on the information you’ve provided, I would guess that the TIFF image is being created in the 16-bit per channel mode, with LZW (or ZIP) compression enabled. In that case, the only real option for reducing the file size (other than reducing the pixel dimensions) would be to create the TIFF file as an 8-bit per channel image rather than a 16-bit per channel image. However, this would also result in less overall information in the photo, and a higher risk of some degree of posterization in the image.

On the assumption that you want to retain the full pixel dimensions of the image, and that you want to keep the image in the 16-bit per channel mode, the only other option for reducing the file size is to be sure to make use of LZW (or ZIP) compression for the TIFF file. These options can be found in the External Editing section of the Preferences dialog in Lightroom.

Subfolder Search

Facebooktwitterlinkedin

Today’s Question: I’m still using Adobe Bridge to manage my photos, as it works well for me. One issue I have run into, however, relates to searching for photos in subfolders. If I have been to the same place several times I make a folder for the place, and then a subfolder for each trip within that folder. Is there any way to search for images matching specific criteria (such as keywords) within all of the subfolders at once, rather than searching in each subfolder one at a time?

Tim’s Quick Answer: Yes, you can filter images across all of the subfolders below the currently selected folder (or even across an entire hard drive). Start by selecting the parent folder containing the subfolders you want to search. Then go to the menu bar and choose View > Show Items from Subfolders. This will cause the images from subfolders to be shown along with those from the current folder, and you can then set filter criteria on the Filter panel to filter among the full set of photos that are now displayed.

More Detail: It is important to keep in mind that because Adobe Bridge is a browser that does not make use of a central catalog for managing photos, the process of browsing and filtering images across multiple folders (or across an entire hard drive) can be a bit slow.

This performance issue is one of the key reasons I favor Lightroom over Adobe Bridge for managing my photos. Because Lightroom makes use of a central catalog, you are able to filter images across many folders much more quickly.

That said, you can indeed browse across multiple subfolders and set filters based on those multiple folders by making use of the “Show Items from Subfolders” option on the View menu.

Incorrect Sort Order

Facebooktwitterlinkedin

Today’s Question: I just returned from South Africa and spent time at two safari lodges. I typically create a separate folder for each lodge that I visit. On my camera (Nikon D600) the images are in the order that they were taken. But when I download them into Lightroom, they are no longer in that order, making it impossible to figure out at which lodge the images were taken. Any suggestions?

Tim’s Quick Answer: The quick solution is to change the sort order to the “Capture Time” option. You can do so by choosing “Capture Time” from the Sort popup on the toolbar below the Grid view display in the Library module, or by choosing View > Sort > Capture Time from the menu.

More Detail: I suspect in this case the sort order has changed to “Added Time” for example, which sorts the images based on the order in which they were added to the Lightroom catalog. This is sometimes not even close to the actual capture order, depending on how the images were written to the card and how they are read by Lightroom upon import.

However, you might have also selected a different sort order based on different criteria. When you choose the Capture Time sort order, the images will be sorted based on the actual capture time embedded in metadata for each image. This is generally my preferred order for sorting my photos, though obviously there are situations where other options are preferred.

I try to make a point to change the sort order back to Capture Time as soon as I’m done reviewing photos using any other sort order, as otherwise I have a tendency to get confused about why the photos aren’t appearing in the order I’m expecting them, or why the photos seem to be in a random order.

Note, by the way, that you can also filter the images by date, which might be helpful for a situation where you want to view images based on the date (or dates) they were captured. To filter by date, make sure the Library Filter bar is displayed (you can choose View > Show Filter Bar from the menu if it isn’t visible). Then set one of the columns for the filter bar to Date, and select the desired date (or dates) from that column, making sure that any other columns are set to “All” (unless you want to apply an additional filter to the images).

Magic Wand Vs. Quick Selection

Facebooktwitterlinkedin

Today’s Question: You addressed a question [in yesterday’s Ask Tim Grey eNewsletter] about the Sample Size setting for the Magic Wand tool. My question is, with the Quick Selection tool now included in Photoshop, isn’t the Magic Wand tool obsolete?

Tim’s Quick Answer: I don’t consider the Magic Wand tool in Photoshop to be obsolete, though I do use the Quick Selection tool more often than the Magic Wand tool. However, when I need to create a selection that consists of a relatively large number of non-contiguous areas, the Magic Wand tool often provides the best solution.

More Detail: To create a selection consisting of a variety of non-contiguous areas using the Quick Selection tool in Photoshop, you would need to paint individually on each of the non-contiguous areas. This can obviously be a very inefficient approach when the selection you need to create consists of a relatively large number of non-contiguous areas.

If you are creating a selection of one large area in an image, or of an area that is comprised of a small number of non-contiguous areas, the Quick Selection tool can most certainly be perfect for the job. But when numerous non-contiguous areas need to be included in the same selection, the Magic Wand tool is generally a better solution.

With the Magic Wand tool selected, I will generally set the Tolerance value to a relatively low number (generally somewhere between 8 and 16, depending on the image), and I will set the Sample Size to “3 by 3 Average” (as noted in yesterday’s edition of the Ask Tim Grey eNewsletter). I will also turn off the Contiguous checkbox, and then create the selection.

For example, if I am creating a selection of the sky (which is a common scenario for using the Magic Wand tool) I will initially click on an open area of sky. I will then hold the Shift key and click on additional areas to sample other pixel values, expanding the range of the selection. Because the Contiguous checkbox is turned off, that selection will include non-contiguous areas of the sky. Therefore, it does not require very many clicks of the mouse (holding the Shift key for the “Add to Selection” option) to create a complete selection.

The key thing to be careful of when the Contiguous checkbox is turned off for the Magic Wand tool is that the selection might include unwanted areas. For example, if there is a lake in the foreground that reflects the sky, that area may be selected even though you don’t want it selected. These issues can generally be resolve rather easily, however, using the Lasso tool, for example, with the “Subtract from Selection” option enabled to remove unwanted areas from the selection.

So yes, I most certainly make use of the Magic Wand tool on a regular basis in Photoshop. I don’t use the Magic Wand nearly as often as I use the Quick Selection tool, but the Magic Wand tool still proves invaluable in certain situations.

Sample Size for Selections

Facebooktwitterlinkedin

Today’s Question: I was watching one of your (great!) videos recently, where you covered the creation of selections using the Magic Wand tool in Photoshop. In this lesson you suggested increasing the Sample Size for the Magic Wand tool to “3 by 3 Average” using the popup on the Options bar. However, I am using a slightly older version of Photoshop, which does not include this setting. Is it possible to create the same effect some other way?

Tim’s Quick Answer: The “Sample Size” popup on the Options bar when you select the Magic Wand tool in Photoshop is actually a “shortcut” of sorts to the same setting for the Eyedropper tool. So the “trick”, in this case, is to first select the Eyedropper tool, then set the Sample Size setting on the Options bar, and then return to the Magic Wand tool. The setting you established for the Eyedropper tool will apply to the Magic Wand tool.

More Detail: In many respects the Magic Wand tool is essentially an extension of the Eyedropper tool. The Eyedropper tool is used to sample a specific color value in a photo, and the Magic Wand tool also samples a color from a photo. The difference is simply that the Magic Wand tool creates a selection based on the sampled pixel value along with the other settings for the Magic Wand tool.

In older versions of Photoshop it was not as obvious that it was even possible to adjust the Sample Size setting for the Magic Wand tool, or that the Magic Wand tool was even related in some ways to the Eyedropper tool. Fortunately, relatively recently there was an update that added a Sample Size popup to the Options bar for the Magic Wand tool.

The important thing to keep in mind is that the Sample Size popup for both the Eyedropper tool and the Magic Wand tool is actually a single setting in Photoshop. In other words, if you change the Sample Size setting for the Magic Wand tool, that same setting will be reflected for the Eyedropper tool. And, conversely, if you change the setting for the Eyedropper tool the same setting will be reflected for the Magic Wand tool.

Fortunately for those using an older version of Photoshop, the bottom line is that the same option is still available, so you can adjust the Sample Size setting for the Magic Wand tool using the settings for the Eyedropper tool.

Thumbnail Size

Facebooktwitterlinkedin

Today’s Question: Is there no way to resize the thumbnails on the filmstrip in Lightroom? I have found the control for resizing thumbnails when I’m using the grid view, but I don’t see any way to change the thumbnail size for the filmstrip.

Tim’s Quick Answer: You can most certainly resize the thumbnails on the filmstrip in Lightroom. To do so, you simply resize the filmstrip panel itself. As you drag the top edge of the filmstrip panel up and down, the thumbnails on the panel will get larger or smaller, respectively.

More Detail: The left, right, and bottom panels in Lightroom can all be resized, enabling you to adjust how much information is displayed on those panels versus how much space is available for the central preview area for your photos.

For example, if you have a lot of long folder names you might want to enlarge the left panel in the Library module, so you can read the entirety of each folder name. And, as noted above, resizing the bottom panel (the filmstrip) will cause the thumbnails to be resized.

Note, by the way, that the Thumbnails slider that appears on the toolbar below the Grid display can be hidden or revealed. So if you don’t see the Thumbnails slider when using the Grid view, you can enable it by choosing Thumbnail Size from the popup at the far right of the toolbar. And if the toolbar at the bottom of the preview area isn’t visible at all, you can toggle the display of the toolbar by pressing the letter “T” on the keyboard.

File Size Parameters

Facebooktwitterlinkedin

Today’s Question: Is there is a difference in quality of image appearing in Flickr exporting from LR and uploading to Flickr using these two different methods:

1) Set file size specifically to 2.3MB

2) Set long dimension to 1920 pixels

I uploaded the same image using the two methods and Flickr shows the uploaded file size as:

1) Exported from Lightroom as a 2.3 megapixel file, then uploaded to Flickr. The image in the Flickr site has the original file size as 1856 x 1239 and 1.0MB.

2) Exported from Lightroom with longest dimension at 1920 pixels, then uploaded to Flickr.   The Flickr site has the original file size as 1920 x 1281 and  1.06MB.

Tim’s Quick Answer: There is no difference in terms of the image quality with either approach, assuming that you use settings that result in the same pixel dimensions with the same JPEG Quality setting.

More Detail: The Image Sizing section of the Export dialog in Lightroom provides a variety of ways you can describe the pixel dimensions you’re looking for. All of them essentially vary only in how you describe the final size of the image, not what the final size will be.

For simplicity, let’s assume an example where we’re exporting a square image, and that we want to create a file at a specific size. For our purposes we’ll assume we are exporting the photo to be printed at 10-by-10 inches at 300 pixels per inch.

In this case you can specify, for example, that you want the exported image to be sized at 10-inches by 10-inches at 300 pixels per inch (using the Width & Height option). You could also specify that you want the image to be 3,000 pixels on the long side (using the Long Edge option). You could use the Dimensions option and specify 3,000 pixels for both width and height, with the resolution set to 300 pixels per inch. And you could use the Megapixels option and specify 9 megapixels at 300 pixels per inch.

All of the above options are simply a different way to instruct Lightroom that you want the image sized to 3,000 pixels by 3,000 pixels. The various options are mostly provided simply because different people think of output sizes in different ways. They also provide flexibility in terms of being able to specify all images will be sized to the same size on the long edge regardless of whether the image is a horizontal or a vertical, for example.

The only “catch” with specifying the output size in megapixels is that you aren’t able to specify the pixel dimensions with as much precision, so to speak. This is illustrated by the example provided in today’s question.

If you multiple the pixel dimensions together for the example created with a 2.3 megapixel setting (1856×1239) you find that there are 2,299,584 pixels, which equates to 2.3 megapixels. The image sized based on the Long Edge option has pixel dimensions of 1920×1281, which translates to 2,459,520 pixels, or almost 2.5 megapixels.

So, if you had used the same pixel dimensions for the Long Edge option (1856 pixels) you would have ended up with two images of the exact same pixel dimensions, at the exact same image quality, and with the exact same file size.

Again, the resizing is performed based on the actual pixel dimensions, and there are various ways to describe those dimensions when exporting a photo. But with equal settings, all of the various options will produce the same result in terms of image quality.

RAW File Sizes

Facebooktwitterlinkedin

Today’s Question: I recently bought a Fuji X-T1 camera. It has a 16 megapixel sensor. The file size in RAW (RAF) is approximately 33.3 MB. My Nikon D4 which also has a 16 megapixel sensor has a RAW file (NEF) of about 20 MB. When I convert the RAF file to a DNG, the file size goes down to about 21 MB (from 33MB). What’s going on here?

Tim’s Quick Answer: The size of a RAW capture certainly has a relation to the resolution of the image sensor, but it is also affected by the bit depth of the analog-to-digital conversion for the camera, compression applied to the RAW capture data, and other factors. In short, the sizes here are not unusual considering the amount of information being gathered.

More Detail: An image that contains around 16 megapixels of information (as is the case with the two cameras referenced in today’s question) will result in a file size (without compression) of about 92 megabytes if the image is saved in the 16-bit per channel mode. If the image is instead saved in the 8-bit per channel mode, that value will be cut in half to about 46 megabytes.

In other words, any file size for the RAW capture file that is less than the 16-bit uncompressed value for the image based on pixel dimensions is not too surprising. The bit depth of the analog-to-digital conversion plays a role, compression (even if lossless) plays a role, and “special” proprietary data saved by the camera will also affect the RAW file size.

In the specific example cited here, the information related to the NEF file size suggests that the captures are being processed at a lower bit depth, are being captured at a lower resolution, or have compression applied (all of these options are available for the Nikon D4). Based on the specifics here, I suspect you have compression enabled for the RAW captures on the Nikon D4. If you capture at full resolution and the full 14-bit per channel depth without compression, you can expect file sizes for the NEF capture that are about the same as those with the Fuji camera of the same resolution.

Converting a RAW capture to a DNG file will generally produce a file that is around 20% smaller than the original RAW capture, and so your experience with the RAF files does not stand out as being unusual. When you convert to DNG lossless compression is applied, which will reduce the file size compared to the original capture. The specific degree to which file sizes are reduced varies based on the original capture data.

So, you’re capturing the same amount of information, more or less, but producing files of a different size based on how that information is actually recorded. In general this relates to overall resolution, bit-depth, and compression, though in this case I suspect compression is the only real factor involved.

Print Specifications

Facebooktwitterlinkedin

Today’s Question: [As a follow-up to yesterday’s question about preparing images to be printed by a lab], all of the labs I have come across instruct us not to use the profile for anything other than soft proofing. Most of them seem to want the print file in sRGB. Can you clarify? Also, most of the labs seem to want JPEG images, which doesn’t seem to make any sense. Why would they prefer JPEG?

Tim’s Quick Answer: I have a feeling that the reason many print labs prefer a “generic” working space profile rather than a specific profile is because many photographers don’t convert the images properly, creating difficulty for the printer. And I suspect the request for JPEG images is because the print lab is prioritizing small files that can be transmitted online more easily over final print quality.

More Detail: A profile for the specific printer, ink, and paper combination being used to print an image defines the specific range of colors (the color gamut) for that print condition. As such, that profile is the optimal profile to use not only for soft proofing the image but also as the actual embedded profile saved with the image.

In other words, if the printer has an ICC profile for the intended output conditions, it is indeed best to convert photos to that profile before sending the file to the printer. If there is a chance that a different paper or set of inks will be used to print the image, then it could certainly be advantageous to keep the image in a working space profile rather than a specific printer profile. But in general the specific printer profile is the best option.

As noted above, however, I suspect part of the reason that many print labs instruct photographers to use a working space profile rather than a specific profile is that photographers might be less familiar with the use of custom profiles, leading to images that haven’t been prepared correctly and therefore might not print as well as they should.

As for the request for JPEG (rather than TIFF) images, I am sure this is simply a matter of wanting a smaller file that can be easily transmitted through an online service, via FTP, or possibly even via email. However, you are sacrificing a degree of print quality when a JPEG rather than TIFF image is used as the basis of a print.

To be sure, it is possible to produce very good prints from a JPEG image. In fact, many magazine covers are printed from a JPEG image. But there is a risk of visible compression artifacts in the final print if the source image is a JPEG rather than a TIFF (or some other format saved with lossless compression or no compression at all). When you save a JPEG image, even at the highest quality setting, there is always some degree of lossy compression applied, and therefore some risk of visible compression artifacts in the image.

The specific risk when printing from a JPEG image depends upon the content of the image, the size at which the image is printed, and the quality setting used for the JPEG image. However, my preference would be to avoid these risks altogether and save in a format (such as TIFF) without lossy compression being applied.

Print Preparation

Facebooktwitterlinkedin

Today’s Question: I am about to enter a competition at a gallery and need to print out my photos. I have calibrated my monitor with Colormunkie. I do not have a professional printer as of yet and need to send out my images to an outside printer.

Questions:

1) I have downloaded the paper/printer profile to my computer hard drive from the printer but do not know how to add this to the file using Lightroom.

2) Should I send the image as a TIFF or a JPEG? The printer accepts both. Don’t I lose some image information if I convert to a JPEG?

Tim’s Quick Answer: You can convert the image to a specific profile using the Color Space option in the File Settings section of the Export dialog. And I certainly recommend using the TIFF file format rather than JPEG, as some quality will be lost if you choose the JPEG format.

More Detail: Before you can actually use the profile for the images you export from Lightroom you need to copy that profile to the Profiles folder on your computer. On Macintosh you can copy the profile to the Library > ColorSync > Profiles folder on your startup disk. On Windows you can simply right-click the profile and choose Install Profile from the popup menu. With the profile installed you can proceed with the export process in Lightroom.

When you export an image from Lightroom you can choose a specific profile to use for the resulting image file. To get started, select the image you want to export and click the Export button at the bottom of the left panel in the Library module. This will bring up the Export dialog, where you can specify the various settings for the image file that will be created upon export.

In the File Settings section of the Export dialog you can set the Image Format option to TIFF. I recommend leaving the Compression option set to None (rather than ZIP) unless you have confirmed with the printer that they are using software (such as Photoshop) that supports ZIP compression for TIFF images.

To actually set the profile for the image, first click the Color Space popup, and then choose Other from the popup. Turn on the checkbox for the applicable profile, and click OK in the Choose Profiles dialog. The profile will then be available (and selected) on the Color Space popup.

You can then set the other options for the export, such as setting the output size for the image in the Image Sizing section. Depending on the specific print process being used, you will probably want to use a resolution of between about 300 and 400 pixels per inch at the specific output size for the print.

All of the other settings can be established based on your preferences (or based on instructions from the printer). Once you’ve finalized the settings, if you anticipate needing to export other images with the same settings you may want to save a preset. To do so, click the Add button at the bottom of the list of presets on the left side of the Export dialog, enter a name for the preset, and click Create.

With all of the settings established for the image (including the location where you want the image saved with the settings in the Export Location section at the top of the dialog) you can click the Export button in the Export dialog, and the selected image will be processed based on the settings you’ve established.