Flash Templates Tutorials - SAVING FILES IN GIF AND JPEG FORMATS - Save For Web using
Save For Web using
The main advantage of Save For Web is the ability to preview the image and automatic preparation of HTML code allowing to set the image on the web page. This action allows you to compare different sets of properties and choose the one that provides optimal image quality and file size. For example, you may compare different indexed palette of colors, options of JPEG compression, JPEG and GIF formats. Thus, the original image remains intact and you can easily come back to it.
By using this action, you may in one operation index colors, add transparency and to save the image in GIF or JPEG format, which eliminates the necessity of pre-using Indexed Color or Color Table action.
Let's consider the composition and appointment of tabs, menus and tools.
The greater part of the dialog box is taken by the view area. Through four tabs you can set the following display modes:
1. Original - viewing the original image without the impact of changes;
2. Optimized - the kind of optimized image without the original;
3. 2-Up - the original and one of the optimized versions;
4. 4-Up - the original and three versions of optimization, of course it is the most visible mode.
Save For Web provides a common set of tools: Hand, Slice Select, Zoom and Eyedropper.
Above the right upper corner of the viewing area there is the Preview menu button containing three sets of actions.
The first group contains a single action called Browser Dither, which is linked with a checkmark Web Snap allowing to see how the image will look like on the monitor. The second group manages color compensation, that is, allows to see the image on the various monitors in different systems. The third group defines the loading speed with which the image will be displayed, and the selected value applies to all options of optimization.
Under the viewing area there is data of the scale, of the used browser and of the current color.
The next menu we will consider is options menu. Options menu button is at the right upper corner of Settings tab.
In this menu there are setting actions, Repopulate Views and Optimize To File Size. The last action we will consider in details because of its exceptional usefulness. For web graphics, fighting for every kilobyte, the ability to automatically regain the reduction of file size is not redundant. In order this action worked, you should:
* set the desired file size, not forgetting that quality depends on it;
* choose whether the work will be done with the current settings or provide Photoshop to set the required format;
* set options of image fragments using defined with the help of Slice tool.
Now lets move on to Settings tab. It provides two ways of optimization: automatic and manual.
Optimization starts automatically when you select from the drop-down menu the style of optimization.
With the manual optimization of the GIF format, you can set an algorithm of reduction of the colors numbers, transparency, interlace loading, anti0aliasing (in percents), color to fill the transparent pixels. These options were discussed above (in section Saving in GIF Format). Additional options are Lossy and Web Snap.
TIP. If setting Lossy on about 30% the file size is significantly reduced, and the quality is acceptable. The smaller the value of Web Snap option, the smaller the degree of conformity of the used web colors. The value of 100% indicates that only web colors are used.
When selecting JPEG format, pay attention to the following differences from the common Save window:
1. in the menu Quality, the ratio varies between 0 and 100;
2. you can use color profile (checkmark ICC Profile);
3. Blur option simplifies compression.
NOTE. To process color profiles, web browser requires additional modules, besides, enabling the color profile increases the file size in 3-4 Kb. When using image blurring you reduce file size but remove its details.
The next two tabs are Color Table and Image Size, they are similar to Image > Mode > Color Table and to Image > Image Size.
In the right upper corner of Color Table tab there is the menu button of color management.
This menu is meant for working with color, selection, blocking and sorting colors table, and allows loading or saving the table.
The final chord is Output Settings button.
In this dialog box you can select parameters for HTML code, background and automatic saving files and image fragments. You can apply settings from the pull-down Settings menu, or set the options by yourself.
TIP. By using the buttons Prev and Next, as well as the list located over the elements that determine options, you can quickly switch between setting modes.
To configure HTML, set the following properties:
1. Formatting. From the four drop-down menus you may select options of tags writing (Tags Case and Attribs Case), the value of Indent and Line Ending properties. Checkmark Always Quote Attributes indicates that tag values should be enclosed in quotes;
2. Coding. Checkmark Include Comments adds comments to HTML code;
3. Slice Output. Cascade style sheet is generated when selecting Generate CSS, thus you need to indicate on what ground web page elements should be displayed. It may be set with the help of Referenced option: "By ID", "Inline" or "By Class". When selecting Generate Table there is a table created. Its options may be selected from three drop-down menus: Empty Cells, TD W & H and Spacer Cells.
TIP. For TD W&H and Spacer Cells options, it is better to set the value Always rather than set by default Auto.
In background output settings you should specify whether the image is a picture or a background, select the background and determine its color.
Saving Files Output Settings window has three tabs:
* File Naming;
* Filename Compatibility, indicating in what systems other than Windows, a file can be used;
* Optimized Files, it copies the background, saves images in one folder, and adds a copyright sign.