Slicing is used in many cases where a graphic design layout must be implemented as interactive media content. Therefore, this is a very important skill set typically possessed by "front end" developers; that is interactive media developers who specialize in user interface development. Slices may be produced and used in several different ways. Before tableless web design, sliced images were held together precisely with html tables. Modern interactive page layout includes extensive use of Cascading Style Sheets and semantic markup. Tables may be used for compatibility with rarer older web browsers that are incapable of processing modern tableless coding accurately. Slicing is exclusively used for bitmap images. Vector images are usually processed by media-playingplugin applications and contained within native multimediafile formats such as X3D, SWF, SVG or PDF files.
Benefits
Slicing reduces work loads and computer data storage space requirements to needing only the part of a dynamic image that changes instead of the whole image. If the slice is on a transparent multi-layered image, it can be reused in multiple parts of an image without changing the background. On the web, slicing breaks up one large image into many smaller ones, which reduces "page weight" or load time considerably. Advanced methods of slicing can be used to further compress the amount of data needed to download to the user's computer in order for the web page to display correctly. Techniques such as repeating background images mean that one small image can be downloaded from the web server only once and then be instructed to repeat by the markup language, shifting the work load from the web server onto the client's computer. Certain performance issues can be raised, however they are typically negligible compared with today's technology and trends of web design shifting towards rich media websites that typically require high bandwidth connectivity and recent computing hardware. In offline electronic media, individually sliced sections of a 2D image can be used to decrease the local computer processing requirements to change a section of that image.
Tools
Quite a few industry standard programs offer the abilities to automatically slice a layout directly into tables using built in functions. These are outlined below:
Recent versions of these programs have improved ability to convert artwork directly into CSS, albeit an unorthodox method since the algorithms rely heavily on absolute positioning, which can render inconsistently across modern web browsers.
Alternatives
Slicing is mainly used for 2D computer graphics with single-layered interfaces. Multi-layered interfaces may use slices, but may also use vector graphics with the drawback of added rendering time and with the advantage of more options and flexibility in altering the appearance of the individual image. These alternate individual images are commonly referred to as sprites.