Optimize an Image

About optimization
When preparing images for the web and other online media, you often need to compromise between image display quality and the file size of the image.

Save for Web & Devices
You can use the optimization features in the Save For Web & Devices dialog box to preview optimized images in different file formats and with different file attributes. You can view multiple versions of an image simultaneously and modify optimization settings as you preview the image to select the best combination of settings for your needs. You can also specify transparency and matting, select options to control dithering, and resize the image to specified pixel dimensions or a specified percentage of the original size.

When you save an optimized file using the Save For Web & Devices command, you can choose to generate an HTML file for the image. This file contains all the necessary information to display your image in a web browser.

Photoshop Save As and Image Processor
In Photoshop, you can use the Save As command to save an image as a GIF, JPEG, or PNG file. Depending on the file format, you can specify image quality, background transparency or matting, color display, and downloading method. However, any web features—such as slices, links, and animations—that you’ve added to a file are not preserved.You can also use the Photoshop Image Processor to save copies of a folder of images in JPEG format. You can use the Image Processor to resize and convert the images’ color profile to web standard sRGB.

Save For Web & Devices overview
You use the Save For Web & Devices dialog box (File > Save For Web & Devices) to select optimization options and preview optimized artwork or Cmd/Ctrl + Shift + Alt + S on your keyboard to bring up the Save for Web & Devices dialog.save-panelA. Display options
B. Toolbox
C. Optimize pop‑up menu
DColor Table pop‑up menu
E.Animation controls (Photoshop only)
F. Zoom text box
G. Preview In Browser menu
H. Original image
I. Optimized image

Optimize an image for the web
There are four things to check for:

  1. Image size
    image-size
  2. File size
    file-size
  3. File type
    file-type
  4. Optimizing Setting
    opt-tab
  1. Choose File > Save For Web & Devices2-file-save
  2. Save for Web & Devices panel will appearsav-web-panel
  3. Select a optimization setting from menu. Click a tab at the top of the dialog box to select a display option: Optimized, 2‑Up, or 4‑Up. If you select 4‑Up, click the preview you want to optimize.
    opt-tab
  4. Choose file format
    file-type
  5. Check file size.
    file-size
  6. Click Save.save
  7. In the Save Optimized As dialog box, do the following, and then click Save:
    • Enter a file name, and select a location for the resulting file or files.
    • Select a Format option to specify what kind of files you want to save: an HTML file and image files, only image files, or only an HTML file.

Resources
Adobe Optimizing images
Optimizing Images For The Web With Photoshop