search
HomeWeb Front-endPS TutorialThe third part of the series on the skillful use of photoshop for front-end engineer skills - cutting pictures

Previous words

In addition to using photoshop for measurements, front-end engineers must also use this software for cutting. This article is the third article in the series of clever uses of photoshop - picture cutting

Picture cutting information

Which pictures need to be cut out in web page production? ? Mainly divided into two categories, one is decorative pictures, the other is content pictures

[1] Modified pictures

Modified pictures mainly modify the content of the web page, generally It is made as a sprite image, used in the background attribute, and is usually saved in png24 (IE6 does not support translucency) and png8 formats. Decorative pictures mainly include the following categories:

1. Icons, logos

2. Buttons, text, etc. with special effects (if the fonts designed by the designer are not very common, put the text When the picture is cut out)

  3. Non-solid color background

 【2】Contentual picture

A picture is worth a thousand words, and the "picture" here refers to the content Sexual images mainly provide content for web pages and are generally used in the The third part of the series on the skillful use of photoshop for front-end engineer skills - cutting pictures tag. Content pictures are rich in color, generally saved in JPG format, and require certain compression. Content pictures mainly include the following categories:

1. Banner, advertising pictures

2. Pictures in articles

[Note] Some content pictures are server data , no need to cut the image, just use The third part of the series on the skillful use of photoshop for front-end engineer skills - cutting pictures placeholder

Steps to cut the image

【1】Hide the text and leave only the background

If there are special effects on the text that cannot be written in code, then cut out the text and background together

 1. If the text is an independent layer, hide the text image

  First find the text layer, and then remove the eye icon

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇

## 2. If the text and background are merged, the tiled background covers the text

 a. If the background can be stretched, use the rectangular marquee tool Draw a small rectangular frame on the background, use the Free Transform Tool (ctrl+t) to stretch the background to cover the text, then double-click or press the Enter key

#

b. If the background has texture and cannot be stretched, use the Rectangular Marquee Tool to draw a small rectangular frame on the background, use the Move Tool +alt to copy the current layer, and press it again and again. Use the arrow keys or use the mouse to move (when moving the mouse, hold down the shift key to ensure that the layer moves in a straight line) until all the text is covered

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇

#【2】
Move the tool to select the required layer (ctrl+click the rectangular area of ​​the layer), and an ant line will appear

【3】

Merge layers (ctrl+e) (optional)

Check automatic selection, and then merge the multiple layers you need

【4】

Copy layer (ctrl+c) ->Create new file (ctrl+n), and press OK->Paste layer (ctrl+v)

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
#ACTUAL COMBAT

The following will be a practical explanation from the perspective of cutting different types of pictures

【Cut png8】

Since png8 pictures do not support translucency, they need to be cut with a background

1. Merge visible layers (shift+ctrl+e)

2. Select a large area with the rectangular marquee tool

3. Remove excess parts with the magic wand tool (subtract from the selection) Go: hold alt)

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇 #

【Cut irregular small icons】

The cutting method is similar to that of png8

[Note] When selecting small hollow icons, be sure to cancel [Continuous] ]

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇

#【 The background can be tiled】

1. Use the rectangular marquee tool to select an area

2. Copy and paste it into a new file (the tiled content fills the width (x-axis) or height of the file (y-axis))

  If it is tiled along the x-axis, it will cover the x-axis; if it is tiled along the y-axis, it will cover the y-axis

前端工程师技能之photoshop巧用系列第三篇——切图篇

【Slicing tool cuts across the board】

Applicable to active pages that can be cut across the board

1. Pull the reference line

2. Select the slicing tool

3. Click Guide-based slicing button

 4. Switch from the slicing tool to the slice selection tool (under the same button)

 5. Double-click the slice and change the required name

6. Save

[Note] Ctrl+a cannot be used to select all slices. You can only drag the rectangular box to select all slices. After selection, the color will become brighter, and then uniformly set the storage format

前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇
前端工程师技能之photoshop巧用系列第三篇——切图篇 前端工程师技能之photoshop巧用系列第三篇——切图篇

#################################################################################################################################################################################################################################### 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
Image Editing Essentials: Key Features of PhotoshopImage Editing Essentials: Key Features of PhotoshopMay 09, 2025 am 12:05 AM

Photoshop's core features include layers, selection tools, and adjustment tools. 1. The layer allows independent editing of image parts and supports layer style. 2. Selection tools such as lasso, magic wand and quick selection tools provide precise editing. 3. Adjustment tools such as color level, curve and hue/saturation can adjust images non-destructively.

My Purpose: Assisting with Photoshop-Related TasksMy Purpose: Assisting with Photoshop-Related TasksMay 08, 2025 am 12:18 AM

In Photoshop, the role of layer masks is to allow hidden or displayed portions of layers in a non-destructive manner. 1. The working principle of layer mask is to control the visibility of the layer through black, white and grayscale. 2. The basic usage includes image synthesis, such as synthesising the character image into a new background. 3. Advanced usage can be achieved by using gradient masks to achieve smooth image transition.

Photoshop and Free Alternatives: A Comparative LookPhotoshop and Free Alternatives: A Comparative LookMay 06, 2025 am 12:12 AM

Photoshop's powerful features include smart objects and neural filters, while free alternatives such as GIMP, Krita and Photopea do well in specific fields such as GIMP's layer functionality, Krita's digital paintings and online editing of Photopea.

Photoshop Color Grading: Elevate Your Images with Pro TechniquesPhotoshop Color Grading: Elevate Your Images with Pro TechniquesMay 05, 2025 am 12:07 AM

Color adjustment in Photoshop can be achieved through adjustment layers to make the image more professional. 1. Use color level, curve, hue/saturation and other tools to adjust the hue, saturation and brightness. 2. Apply LUT to create unique color effects. 3. Use adjustment layers to avoid image distortion and use the History panel to track adjustment steps.

Photoshop in the Real World: Examples of Its Diverse UsesPhotoshop in the Real World: Examples of Its Diverse UsesMay 04, 2025 am 12:15 AM

Photoshop's applications in the real world include artistic creation, scientific research and commercial marketing. 1) In artistic creation, it is used for digital painting and illustration. 2) In scientific research, it is used for image processing and data visualization. 3) In commercial marketing, it is used for advertising design and brand image shaping. The versatility of this software makes it widely used in various fields.

Beyond Editing: Photoshop's Creative CapabilitiesBeyond Editing: Photoshop's Creative CapabilitiesMay 03, 2025 am 12:12 AM

Adobe Photoshop goes beyond simple editing and becomes a creative tool for artists and designers. 1) It provides a wealth of tools such as brushes, stamp tools, blend modes and layer styles, supporting adjustments from basic images to complex digital paintings and 3D designs. 2) These tools implement functions through pixel-level operations, allowing users to create unique visual effects.

Photoshop: Exploring Pricing Models and OptionsPhotoshop: Exploring Pricing Models and OptionsMay 02, 2025 am 12:12 AM

Photoshop offers two pricing models: single purchase and subscription service. 1. Single purchase: Pay $699 in one lump sum, permanent use, but no updates and cloud services. 2. Subscription service: $20.99 per month or $239.88 per year, and the latest version and cloud services are available. 3. Enterprise plan: $33.99 per user per month, including team management and additional cloud storage. 4. Educational Offer: Students and teachers are $19.99 per month, including multiple CreativeCloud applications.

Photoshop: Mastering Layers and CompositionPhotoshop: Mastering Layers and CompositionMay 01, 2025 am 12:05 AM

The method to create a new layer in Photoshop is: 1. Click the "New Layer" button at the bottom of the layer panel; 2. Use the shortcut keys Ctrl Shift N (Windows) or Command Shift N (Mac). The layers are like transparent sheets on canvas, allowing design elements to be managed separately, non-destructive editing and experimenting, and improving design levels.

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools