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
How do I use Photoshop for creating social media graphics?How do I use Photoshop for creating social media graphics?Mar 18, 2025 pm 01:41 PM

The article details using Photoshop for social media graphics, covering setup, design tools, and optimization techniques. It emphasizes efficiency and quality in graphic creation.

How do I use Photoshop's Content-Aware Fill and Content-Aware Move tools effectively?How do I use Photoshop's Content-Aware Fill and Content-Aware Move tools effectively?Mar 13, 2025 pm 07:35 PM

Article discusses using Photoshop's Content-Aware Fill and Move tools effectively, offering tips on selecting source areas, avoiding mistakes, and adjusting settings for optimal results.

How do I prepare images for web use in Photoshop (file size, resolution, color space)?How do I prepare images for web use in Photoshop (file size, resolution, color space)?Mar 13, 2025 pm 07:28 PM

Article discusses preparing images for web use in Photoshop, focusing on optimizing file size, resolution, and color space. Main issue is balancing image quality with quick loading times.

How do I prepare images for web using Photoshop (optimize file size, resolution)?How do I prepare images for web using Photoshop (optimize file size, resolution)?Mar 18, 2025 pm 01:35 PM

Article discusses optimizing images for web using Photoshop, focusing on file size and resolution. Main issue is balancing quality and load times.

How do I use Photoshop's video editing capabilities?How do I use Photoshop's video editing capabilities?Mar 18, 2025 pm 01:37 PM

The article explains how to use Photoshop for video editing, detailing steps to import, edit, and export videos, and highlighting key features like the Timeline panel, video layers, and effects.

How do I calibrate my monitor for accurate color in Photoshop?How do I calibrate my monitor for accurate color in Photoshop?Mar 13, 2025 pm 07:31 PM

Article discusses calibrating monitors for accurate color in Photoshop, tools for calibration, effects of improper calibration, and recalibration frequency. Main issue is ensuring color accuracy.

How do I prepare images for print using Photoshop (resolution, color profiles)?How do I prepare images for print using Photoshop (resolution, color profiles)?Mar 18, 2025 pm 01:36 PM

The article guides on preparing images for print in Photoshop, focusing on resolution, color profiles, and sharpness. It argues that 300 PPI and CMYK profiles are essential for quality prints.

How do I create animated GIFs in Photoshop?How do I create animated GIFs in Photoshop?Mar 18, 2025 pm 01:38 PM

Article discusses creating and optimizing animated GIFs in Photoshop, including adding frames to existing GIFs. Main focus is on balancing quality and file size.

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)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

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

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),