Image Optimization in Photoshop

Photoshop

Optimization is usually an afterthought or an after process in development; it usually only begins once a product is built, and only then if the site or application shows visible signs of needed optimization. I am vehemently against optimizing at the last minute, it should be part of your workflow(s), integrated into your development, on varying levels. One area of optimization that is critical for performance and seo is compacting and minimizing file sizes. Focusing on image file sizes in particular, when left unchecked, they can seriously impede a site’s download time, which affects that sites rankings in serps, amongst other things. There are a slew of methods to achieve this today (I use pngcrush), but as far as I know they are all focused on the images once they are production ready. While this standard practice is not going anywhere, check out these methods to be proactive with your image optimization before they get to production. These are only for Photoshop, however it is my image editor of choice when not developing in-browser.

Gamma Values

Gamma Value of a computer monitor affects how light or dark an image is in a browser. Windows use gamma of 2.2, Mac os use 1.8, so images look darker on Windows typically. In Photoshop, we can preview how images will look on different os with different gamma values, and make adjustments to compensate. Gamma Values can be altered to increase cross-platform compatibility, to aid in the ux, and also for simple design aesthetics.

After selecting Save for Web & Devices, choose one of the options in the dialog box Preview pop-up menu:

  1. Monitor Color: makes no adjustments (default)
  2. Macintosh: displays adjustments based on default Macintosh gamma.
  3. Windows: displays adjustments based on default Windows gamma.
  4. Use Document Profile: Adjusts gamma to match any attached document color profile in a color-managed document.

Photoshop Image Processor

The Photoshop Image Processor saves copies of a folder of images into jpeg format. The Photoshop Image Processor can be utilized for resizing and converting images’ color profile(s) to Web Standard srgb.

Save for Web & Devices Option

You can select the Save for Web & Devices Option under the File Menu, the same place where all of the Save options are located in Photoshop. Selecting this option shows further options for Image Optimization and previewing said images. Atop this dialog box are four tabs, original, optimized: displays image with current optimization settings applied, 2-Up: displays two versions of the image, and 4-up which displays four versions of the image.

Select preset optimization setting from the Preset Menu, or set individual options; available options change depending on the selected file format. In 4up Mode, if you choose Repopulate Views from the Optimize Menu, it automatically generates lower-quality versions of your image after changing the optimization settings.

Photoshop 2-Up Tab Screenshot
Photoshop Image Optimization 2-Up Tab Selected Screenshot
Photoshop 4-Up Tab Screenshot
Photoshop Image Optimization 4-Up Tab Selected Screenshot
Photoshop Optimized Tab Screenshot
Photoshop Image Optimization Optimized Tab Selected Screenshot
Photoshop Original Tab Screenshot
Photoshop Image Optimization Original Tab Selected Screenshot

You can change the optimization settings to your desired balance of image quality and file size; if using multiple slices, make sure you optimize all of them too. To insure that an optimized images colors are cross-browser compatible, make sure you convert any images with an embedded color profile other than srgb before you save for web. Convert to srgb option is default.

Optimize xmp Metadata

You can choose what xmp Metadata saves with your optimized file from the Metadata Menu. Metadata is only partially supported by gif/png formats and fully supported by jpeg. options:

Photoshop Metadata Optimization Menu Screenshot
Photoshop Image Optimization Metadata Optimization Menu Screenshot
  1. None: no Metadata saved, smallest file size.
  2. Coypright: Saves copyright notice, rights usage terms, copyright status, and copyright information url.
  3. Copyright and Contact Info: Saves all copyright information, plus creator, creator job title, email(s), address, city, state/province, postal code, country, phone(s) and website(s).
  4. All Except Camera Info: Saves all xmp Metadata except exif data, which holds camera settings and scene information.
  5. All: saves all xmp Metadata.

Save your optimization settings as a named set and apply them to other images; they’ll appear in the Preset Menu.

Note: If you have an image with any embedded color profile other than srgb, convert the image’s colors to srgb before saving for the web.

You can preview optimized images in any browser that you have installed, simply click the browser icon at the bottom of the Save For Web & Devices dialog box. I had no browsers in the pop-up Menu, so I added some, for clarity’s sake. I selected Firefox and sure enough, an instance of Firefox fired up and displaying the image preview, as well as a caption listing the image’s file type, dimensions (px), size, compression specifications and any other settings it is using.

Photoshop Image Preview Screenshot
Photoshop Image Preview and Caption Screenshot in Firefox
Photoshop Image Preview Browsers Menu Screenshot
Photoshop Image Preview Browsers Menu Screenshot from the Save For Web Dialog

Compress an Image to a Specific Size

When saving for Web & Devices, select the tab with the desired display option, at the top of the dialog box. Then select Optimize To File Size from the Optimize Menu (right of the Preset Menu), enter the desired file size and select a Start With option. The Auto Select gif/jpeg Start With option automatically selects the optimal format, depending on the image’s content.

Saving Images for Email

Photoshop also allows us to save files for email, simply click the Optimized Tab in the Save For Web & Devices dialog box and select jpeg Low from the Preset Menu. Select the chainlink icon to the right of the dimension size boxes to retain image proportions and then enter 400 pixels into the width. Adobe recommends this size, however I don’t and neither do i recommend optimizing for email, at least for my purposes. I’m sure there are good reasons to it, I’m just not aware of any.

All of this information was found using this resources.

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>