search
HomeWeb Front-endPS TutorialFront-end Photoshop slicing

Front-end Photoshop slicing

Feb 23, 2017 am 09:20 AM

What is slicing? (Slice in Photoshop)

Slice: Cut the picture into several parts and upload them one by one, so the upload speed is faster. Each slice is transferred as an independent file, which contains the slice's own settings, color palette, links, flip effects, and animation effects.

Slicing tool: It is mainly used to decompose a large picture into several small pictures. This function is mostly used in web pages, because the current web pages contain pictures and text, and because of this, it takes a long time. , in order to prevent people browsing the webpage from waiting too long, they cut the picture into several smaller ones.

Slicing is a very important step in the web page production process. Whether the slicing is correct or not will often affect the post-production of the web page. Generally, PS or FW is used to cut the renderings of web pages or large-scale pictures. Important correct slicing will bring a very positive impact to the website. For example: reducing web page loading time, creating dynamic effects, optimizing images, links, etc.

1. Production of web page slicing

1. Reduce web page loading time

Sometimes a large banner image may be needed on the web page, so it will cost the browser to download the image. For a long time, this is very detrimental to the user experience. The emergence of web slicing solves this problem very well. The use of slicing divides the entire large picture into many different small pictures, and the browser will also download these small pictures. In this way, the time for the browser to download the picture is greatly shortened, saving a lot of time.

2. Optimize images

Generally speaking, a complete image can only be in one format, jpg, gif, png, psd, dpf or other. If there is one format, then we can only use A way to optimize. Web slicing can divide this picture into many small pictures, and can save them in other formats, which can be optimized separately. This will ensure that the image quality is high while also reducing the image memory and improving the loading speed of the web page.

Preparation before slicing: save the web page PSD file and integrate the PS pictures

Specific preparation for slicing: splitting the slices and the type of slice (user slice, non-user slice)

Basic points of slicing:

            1. Cut according to the color range;

            2. Slice size: cut the web page slices as small as possible;

                3 , The slice area is complete: ensure that a complete part is within a slice, such as the title text of a certain area, which is convenient for later modification; There are many color transitions. Those with rich colors should be exported to JPG, and the parts with animation should be exported to GIF animation; , I don’t know if I need to change a certain part someday, such as text, etc. I can just modify the slices used separately.

Display and hide sliced ​​layers: slices of background images; slices of irregular images. Editing of slices: size, adjustment, deletion, clearing slices (you can select one by one, right-click to delete, or view all to delete), save slices (stored in a format used by the web)

Delete slices

Edit Slot options: Slip type, name: automatically generated, generally naming English, web code is more friendly, URL: link address, target, ALT mark: you can search and optimize pictures through the search optimization picture ,                                                                     Size W H

Save sliced ​​(stored as a web used format) Ctrl+Shift+Alt+S: The commonly used format is JIF and PNG -24 to support background transparency (transparent check support background transparency), JPEG (picture quality is generally 80 or more). Then click Save, save the format, the format has limit images, set to default settings, slices (all slices: whether user slices or non-user slices will be exported, all user slices: only the slices cut, selected slices: only The selected slices will be exported), and a folder (images) will be automatically generated.​ ​ 1. Introduction to the three slicing formats: use the jpg format for brighter color ranges , png supports web page transparency, and jif supports a relatively narrow color range.

2, comparison (applicable range) of three slices: JPG web pages support this format; PNG supports transparency and background; JIF animation can be posted.

3, the scope and advantages and disadvantages of the three slices: PNG: IE6 does not support picture transparency; the color exported by GIF animation is single, and sawtoles appear when the color is bright.

cutting and renaming:

1, the export of slices

2. The name of the slice is best in English. Symbols starting with

              Slicing techniques (gradient, shadow, irregular):                                                                                                                                                                                                                                                     to be sliced ​​​​​ ​ ​Shadow: How to implement it in web pages, css3 can also be implemented Shadows are not supported by IE6 and IE8. You can make a separate slice for the shadow, turn off the background and save it in png-24 format

Irregular: Hide the background and save it in png format

Web page slice Practical exercises

Some colors can be expressed by oneself, pendant production (whole cut), video play button

Steps: organize the layers, save them (to back up the pictures), do as much as possible To be precise, if there are many canvases, you can create a new one and copy it to the new canvas

How to quickly insert a slice: hyperlink or add it as a background link

Summary Knowledge points and key points of slicing: the concept of slicing , function, format selection

For more front-end Photoshop slicing related articles, please pay attention to the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Using Photoshop for Graphic Design: Branding and MoreUsing Photoshop for Graphic Design: Branding and MoreApr 16, 2025 am 12:02 AM

The steps to using Photoshop for brand design include: 1. Use the Pen tool to draw basic shapes, 2. Add shadows and highlights through layer styles, 3. Adjust colors and details, 4. Use smart objects and actions to automatically generate different versions of the design. Photoshop helps designers create and optimize brand elements with the flexibility of layers and masks, ensuring consistency and professionalism of designs, from simple logos to complex branding guides.

Photoshop's Subscription Model: What You Get for Your MoneyPhotoshop's Subscription Model: What You Get for Your MoneyApr 15, 2025 am 12:17 AM

Photoshop's subscription model is worth buying. 1) Users can access the latest version and use across devices at any time. 2) The subscription fee is low, and continuous updates and technical support are provided. 3) Advanced functions such as neural filters can be used for complex image processing. Despite the high long-term costs, its convenience and feature updates are valuable to professional users.

Photoshop: Investigating Free Trials and Discount OptionsPhotoshop: Investigating Free Trials and Discount OptionsApr 14, 2025 am 12:06 AM

You can get the access to Photoshop in the most economical way: 1. Experience the software features with a 7-day free trial; 2. Find student or teacher discounts, as well as seasonal promotions; 3. Use coupons on third-party websites; 4. Subscribe to Adobe CreativeCloud's monthly or annual plan.

Photoshop for Designers: Creating Visual ConceptsPhotoshop for Designers: Creating Visual ConceptsApr 13, 2025 am 12:09 AM

Creating visual concepts in Photoshop can be achieved through the following steps: 1. Create a new document, 2. Add a background layer, 3. Use the brush tool to draw basic shapes, 4. Adjust colors and brightness, 5. Add text and graphics, 6. Use masks for local editing, 7. Apply filter effects, these steps help designers build a complete visual work from scratch.

Is Photoshop Free? Understanding Subscription PlansIs Photoshop Free? Understanding Subscription PlansApr 12, 2025 am 12:11 AM

Photoshop is not free, but there are several ways to use it at low cost or free: 1. The free trial period is 7 days, and you can experience all functions during this period; 2. Student and teacher discounts can cut costs by half, and school proof is required; 3. The CreativeCloud package is suitable for professional users and includes a variety of Adobe tools; 4. PhotoshopElements and Lightroom are low-cost alternatives, with fewer functions but lower prices.

Photoshop's Value: Weighing the Cost Against Its FeaturesPhotoshop's Value: Weighing the Cost Against Its FeaturesApr 11, 2025 am 12:02 AM

Photoshop is worth the investment because it provides powerful features and a wide range of application scenarios. 1) Core functions include image editing, layer management, special effects production and color adjustment. 2) Suitable for professional designers and photographers, but amateurs may consider alternatives such as GIMP. 3) Subscribe to AdobeCreativeCloud can be used as needed to avoid high one-time spending.

The Core Purpose of Photoshop: Creative Image DesignThe Core Purpose of Photoshop: Creative Image DesignApr 10, 2025 am 09:29 AM

Photoshop’s core use in creative image design is its powerful functionality and flexibility. 1) It allows designers to transform creativity into visual reality through layers, masks and filters. 2) Basic usages include cropping, resizing and color correction. 3) Advanced usages such as layer styles, blend modes and smart objects can create complex effects. 4) Common mistakes include improper layer management and excessive use of filters, which can be solved by organizing layers and using filters reasonably. 5) Performance optimization and best practices include rational use of layers, regular saving of files, and using shortcut keys.

Photoshop for Web Design: Advanced Techniques for UI/UXPhotoshop for Web Design: Advanced Techniques for UI/UXApr 08, 2025 am 12:19 AM

Photoshop can be used in web design to create high-fidelity prototypes, design UI elements, and simulate user interactions. 1. Use layers, masks and smart objects for basic design. 2. Simulate user interaction through animation and timeline functions. 3. Use scripts to automate the design process and improve efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor