Previous Document Next Document
  • Using the Image Slicer

  • Deciding When to Slice Images

  • Understanding the Image Slicer

  • The Image Slicing Layer

  • Working with Image Slices

  • Grouping Slices

  • Using the Image Slicer

    Using a large graphic for navigation is common on the Web. With Corel Painter, you can segment a graphic into slices. Each slice is exported as a separate image, then reassembled using an HTML table.

    Most useful for implementing rollovers, the Image Slicer plug-in can also, in some cases, let you replace high-bandwidth image areas with lower-bandwidth HTML elements.

    Segmenting a large graphic into smaller, optimized image files can reduce load time while letting you control the resulting image quality.

    The Image Slicer supports these export options:

    For example, one part of your image might contain a photo; a second, a graphic image; and a third, some text.

    With the Image Slicer, you can:

    You can optimize each slice in your image, depending on content.

    Deciding When to Slice Images

    The Image Slicer plug-in is most useful when your image contains rollovers. For more information, refer to "Creating Rollovers from Image Slices". Image mapping, in contrast, is most useful when you want to define multiple clickable links within a single image. For more information about image mapping support, refer to "Image Maps".

    Use image slicing if:

    Understanding the Image Slicer

    You don't have to know HTML or JavaScript™ to create a sliced image because the Corel Painter Image Slicer plug-in generates it for you. However, it's helpful to have some understanding of how tables operate within HTML, as the slices will become part of a table.

    A table displays information in rows and columns, with borders that can be shown or hidden. Tables allow you to format or lay out elements on a page to create alignment and space.

    If one or more of the slices is designed to be a rollover, the Image Slicer plug-in generates the JavaScript needed for the rollover effect. Refer to "Understanding Rollovers".

    After you've used the Image Slicer plug-in, you can use the HTML file it creates as a starting point, or you can copy the HTML code for the table and any JavaScript for rollover effects into your own HTML file.

    The Image Slicing Layer

    The Corel Painter Image Slicer plug-in creates an Image Slicing layer that stores information about how your image is sliced (segmented) and about how each slice of your image should be exported.

    Every time you apply the Image Slicer, a new Image Slicing layer is created. Each Image Slicing layer generates code for an HTML table. Be careful not to open multiple instances of the Image Slicer plug-in when you're slicing an image. Create one Image Slicing layer, then just double-click it on the Layers palette to continue working.

    There may actually be times when you want to have more than one Image Slicing layer. For example, if you want to slice an image in different ways for use on different Web pages, you could create an Image Slicing layer for each page. For most slicing purposes, however, you should create only one Image Slicing layer.

    The Image Slicer works on the imagery below it in the layer stack. Because of this, the Image Slicing layer must be topmost in the layer stack.

    If you add layers to your image after adding the Image Slicing layer, be sure to move the Image Slicing layer to the top of the layer stack before exporting the slices again. For more information about re-ordering layers, refer to "Changing Layer Hierarchy".

    If all or most of your image slices are of the same file format (GIF, JPEG, TIFF, or No Export), have the same number of image states, or reference the same URL, you can save time by setting those options before creating any slices.

    Working with Image Slices

    You create image slices by adding horizontal or vertical slice lines to your image. You can also create both a horizontal and a vertical line at once. You can move or delete single lines. When a slice is created, it is given an incremental name (Image1, Image2, and so on). This name is also the filename for the slice.

    After you create slices, you can rename them, export them, and set options such as links so the user can click the slice to jump to a specified location. For specific information about GIF options, see "Saving GIF Files". For specific information about JPEG options, see "Saving JPEG Files".

    You can also set options for using slices as rollovers. For more information, refer to "Creating Rollovers".

    After setting options for all the slices in your image, you can export them.

    To slice an image
    1. Open the image you want to slice.
    2. Starting with a resolution of 72 dpi is recommended.

    3. On the Layers palette, make sure that no layers are selected.
    4. On the Layers palette, click the Dynamic Plug-ins button , and choose Image Slicer.
    5. In the Image Slicer dialog box, click one of the following tools:
    1. In the image window, click where you want to add a slice line. A plus sign next to the cursor indicates you are adding a new slice to the image.
    2. As you move the cursor around in the image window, the X and Y coordinates are displayed in the Image Slicer dialog box. A small preview window displays a zoomed-in version of your image to help create slices based on color.

      Once a slice is defined, its top, left, bottom, and right coordinates, as well as the slice size (in pixels), are displayed.

    Note
    To move a slice line
    1. In the Image Slicer dialog box, click the Horizontal tool or the Vertical tool.
    2. In the image window, move the pointer over the line you want to move.
    3. When the pointer changes to include positioning arrows, drag the slice line to a new position.
    To delete a slice line
    1. In the Image Slicer dialog box, click the Horizontal tool or the Vertical tool.
    2. In the image window, hold down Command (Mac OS) or Ctrl (Windows), and move the pointer over the line you want to delete.
    3. When the pointer changes to include a minus sign, Command+click the line (Mac OS) or Ctrl+click the line (Windows).
    To rename a slice
    1. In the Image Slicer dialog box, choose a slice from the Slice pop-up menu.
    2. In the File Name box, type the new name.
    3. The new name displays in the Slice pop-up menu the next time you select a slice.

    Note
    To set slice options
    1. In the Image Slicer dialog box, choose a slice from the Slice pop-up menu.
    2. From the File Type pop-up menu, choose a file format.
    3. If you do not want an image file exported, such as when a portion of the image can be replaced by an HTML element, choose No Export.

    4. Click Options, and specify the options you want for the chosen file format.
    5. Specify any of the following optional settings:
    To export slices
    1. In the Image Slicer dialog box, click Export Settings for Current Image State, and specify any of the following options:
    1. Click Export.
    Note

    Grouping Slices

    You can fine-tune your sliced image by combining slices that go together or that do not contain slice objects.

    For example:

    A sliced image, before slices are grouped.

    After grouping slices.

    Grouped areas must remain rectangular. If you create a nested group, previously grouped slices may be ungrouped in order to create a rectangular shape.

    Automatically assigned slice names change based on the top-left slice in the group.

    To group slices
    1. In the Image Slicer dialog box, click the Select tool .
    2. In the image window, click the top-left slice to be included in the group, and drag down or to the right, or both, until the target slices are selected. When you release the mouse button, the slices are grouped.

    Click the top-left slice and drag until a new, larger slice is created.

    To ungroup slices
    Previous Document Next Document Back to Top