PS cutting of page production part
From a technical level, the first step of web design is for the artist to make a web page rendering, and the second step is to cut the web page on the front end of the web page. Commonly used tools for cutting web pages include Fireworks and PS. PS is used here to cut web pages.
We get the output we want (such as .png, .jpg files) through the design draft, and provide image materials (HTML: img, CSS: background) for the web page.
1. Using PS tools
1.1 PS preference settings
Edit-"Preferences-"Units and Rulers, select pixels.
1.2 Panel
Open under the "Window" menu:
Tools (opened by default)
Options (enabled by default)
Layer (enabled by default)
Information (enabled manually)
History (enabled manually)
Close other unnecessary functions, place the above functions in the appropriate area, Window-"Workspace-"Save workspace, the set workspace is as follows:
1.3 Common tools for cutting pictures
▪Move tool
will automatically select the check box and change the group to layer
▪Rectangular Marquee Tool
▪Magic Wand Tool
▪Crop Tool + Slice Tool
▪Scale Tool
-Zoom In: Ctrl+Plus Sign
-Zoom out: Ctrl+Minus Sign
▪Color Picker
1.4 Auxiliary View
Open under the "View" menu:
▪Alignment (on by default) (there is an adsorption force when encountering guide lines and boundaries)
▪Ruler Ctrl+R
▪Display->Guide line Ctrl+ ; (Additional content needs to be displayed)
2. Obtain information
Open the design draft and obtain information:
▪Size information: Measurement
▪Color Information: Color Picking
The most important thing to obtain information is to stretch the canvas as large as possible to minimize the error.
Measurement
2.1 All numbers must be measured
Tools:
Rectangular Marquee Tool+Information Panel
Measurement content:
Width, height
Padding, margin
Border
Positioning
Text Size
Line height
Background image position
2.2 Measure the selection (Rectangular Marquee Tool)
Add to the selection: Press Hold Shift
to subtract from the selection: hold Alt
to intersect with the selection: hold Shift+Alt
to get some other confidence, such as line height:
##2.3.2 Non Separate text layer (select the larger font as the measurement)
Use the rectangular marquee tool, select the text, and the height is the font size;
Measurement of line height
Use For the rectangular marquee tool, the height from the bottom of the previous line of text to the bottom of this line of text is the line height, as shown below:
Color Picking
2.4 All All colors must be picked
Tools:
Color picker + eyedropper toolColor picking content:Border color
Background color
Text color
Enlarge the canvas as much as possible to obtain solid points and avoid jagged points.
2.5 The color of a separate text layer can be obtained directly, and other colors can be obtained using the "Color Picker + Eyedropper Tool"
Special attention is due to the overlay effect of the layers, the displayed color does not match the actual color. This is to use the color picker to get the color
2.6 Color picking tool Cleverly use
2.6.1 to determine whether the background is a solid color (color picker + eyedropper tool)
Keep clicking on different areas to see if the color changes
2.6.2 Determine whether it is a linear gradient (magic wand)
First select the layer, then select the magic wand tool, click to select the top line, the display is as follows:
![]()
Continue clicking and select one row downward at a time
![]()
Confirm it is a linear gradient.
3. Slicing
3.1 Content that needs to be sliced
Modifying (generally used in the background attribute):
icon , logo
Buttons, text, etc. with special effects
Non-solid color background
Content-based (generally used in img tags)
banner, advertising pictures
The pictures in the article...
For example, in the picture below, the red box needs to be cut, and the black box is obtained from the background No need to cut
3.2 The saving type of the cut pictures
The content-related ones are generally saved as .JPG,
Modified ones are generally saved as .PNG8, .png24
Both PNG8 and PNG24 support full transparency; PNG24 supports translucency (higher image quality), but ie6 does not support PNG24 translucency, which requires Be compatible.
3.3. Cut the picture
Hide the text and keep only the background
3.3.1 Text independent layer (hidden text layer)
Found Text layer
Remove the glasses icon
Use the rectangular marquee tool to select an areaFree transformation Ctrl+TThe background image cannot be stretched ( The background has texture effects, etc.)
Select an area with the rectangular marquee toolUse the move tool + Alt3.3.3 Get the slice
Cut image.PNG24
•Move tool to select the required layer (hold down Ctrl to select multiple)•Right-click to merge layers (Ctrl+E)Cut the image into .PNG8 (cut with background)•Email the drawing layer to a new file or drag it directly to an existing file (New: Ctrl+N)
•Merge visible layers (Shift+Ctrl+E)3.3.4 Tileable background cutouts•Rectangular Marquee Tool selects content
•Magic Wand Tool removes excess parts (Subtract from selection: hold down Alt)
Select an area with the rectangular marquee toolCopy and paste into a new fileTile The content fills the width (x-axis) or height (y-axis) of the file: For example, if a new file is used to tile the x-axis, the width of the cut image must be consistent with the new file3.4. Slicing tool (applicable to active pages that can be cut across the board)
▪4. SavePull the guide line
▪Select the slicing tool
▪Click the "Slice based on guides" button in the options bar
▪Select the slice selection tool
Double-click the slice to change the file name and other information
▪Save
Select all slices and set the storage format uniformly
Save the required content (the background is usually transparent)
▪Copy, create, paste (Ctrl+C, Ctrl+N, Ctrl+V, or drag content to a new file)
Independent layer: directly Drag content to a new file Merge together: Rectangular Marquee Tool selection, Magic Wand extraction, Ctrl+C, Ctrl+N, Ctrl+V▪Save in the format used by the Web (Alt+Shift+Ctrl+S)
4.1 Save type one (JPG)
When When the picture is rich in color and does not require transparency
It is recommended to save it in JPG format and choose the appropriate quality
Note:Quality: 60-80; cannot be 100 ,80 is already good
4.2 Save type 2 (PNG8)
When the picture is not very colorful, regardless of whether there is transparency requirement
Save as PNG8 format
Note: When saving, you need to reset the no dithering and no matting
When the image has translucency requirementsSave it in PNG24 formatDefault setting. 4.4 Save type four (PSD)
To ensure the quality of the pictureReserve a copy of the PSD file, and any future modifications will be made on the PSD fileFive modifications and maintenanceAs the project progresses, we may want to change the location of the icon, add new icons, delete old icons, and modify the size of the canvas, so we need to make modifications and maintain. 5.1 Change the canvas size5.1.1 Add the canvasImage-》Canvas size, select the anchor point according to the situation
The first method: Select the area with the rectangular selection tool, Image->Crop to crop the canvas;The second method: Use the crop tool directly to crop.5.2 Move the icon
▪If the icon is an independent layer
, just drag it with the move tool▪
If the icon is not independent
Use the selection tool to select the icon areaUse the move tool to drag the icon
Note: If the icon is not independent, you can use the selection tool to select the icon area, press Ctrl+X to cut it, and then paste it to turn the icon into an independent layer.
5.3 Add iconsAfter organizing the icons, place them in the corresponding location. Note: To modify PNG8 pictures, you need to change the color mode to RGB color. How to do it: Image-》Mode-》RGB Color. 6 Usage Image merging solution: Sprite image CSS Sprites are called CSS sprites by many people in China. They are a web image application processing method. It allows you to include all the scattered pictures involved in a page into one big picture, so that when the page is accessed, the loaded pictures will not be displayed one by one as before. . Position the background according to the position of the specific icon on the big picture. Advantages of Sprite puzzle: Reduce network requests and improve web page loading speed.
Compression tool: ▪Lossy TinyPng: https:/ /tinypng.com/▪Lossless Minimage: https://github.com/NetEaseWD/minimage6.2 Merge6.2.1 Arrange
Appropriate gaps must be reserved between images (to facilitate image modification and Css code writing) Icon arrangement: horizontal and vertical
▪Merge pictures belonging to the same module (functionalization)▪Merge pictures of similar size (save space)▪Merge pictures with similar colors (reduce the number of colors and the file size will be relatively small)▪Combined the above methods to merge6.2.3 Merger recommendations
▪Only picture merging used on this page▪Stateful picture merging (mouse over state change, etc.)Seven browser compatibility solutions7.1 IE6 does not support PNG24 translucency
Solution: Save two copies of sprite.png(24) and sprite_ie. png(8)7.2 Css3
▪Advanced browsers use css3▪Low-level browsers use cut images7.3 Graceful downgrade
▪Supported display effects▪No support, no effect
##More For articles related to front-end technology-PS cutting, please pay attention to the PHP Chinese website!

Photoshop is very practical and creative in practical applications. 1) It provides basic editing, repairing and synthesis functions, suitable for beginners and professionals. 2) Advanced features such as content recognition fill and layer style can improve image effects. 3) Mastering shortcut keys and optimizing layer structure can improve work efficiency.

Advanced features of Adobe Photoshop include advanced selection tools, layer blending modes, and actions and scripts. 1) Advanced selection tools such as the Quick Selection Tool and the Color Range Selection Tool can accurately select image areas. 2) Layer blending mode such as "overlapping" mode can create unique visual effects. 3) Actions and scripts can automate repetition of tasks and improve work efficiency.

Photoshop's powerful functions in photo editing and enhancement include: 1. Use the "Repair Brush Tool" to remove acne, 2. Use the "Liquefaction Tool" to slim face, 3. Use the "Frequency Separation" technology to accurately retouch images. These functions are implemented through algorithms and image processing technology to optimize image processing effects.

Key features of Photoshop include layers and masks, adjustment tools, filters and effects. 1. Layers and masks allow independent editing of image parts. 2. Adjust tools such as brightness/contrast can modify image tone and brightness. 3. Filters and effects can quickly add visual effects. Mastering these features can help creative professionals achieve their creative vision.

Photoshop's applications in digital art include painting, illustration and image synthesis. 1) Painting: Using brushes, pencils and mixing tools, the artist can create realistic effects. 2) Illustration: With vector and shape tools, artists can accurately draw complex graphics and add effects. 3) Synthesis: Using mask and layer blending mode, artists can seamlessly blend different image elements.

Photoshop's advanced photo editing and synthesis technologies include: 1. Use layers, masks and adjustment layers for basic operations; 2. Use image pixel values to achieve photo editing effects; 3. Use multiple layers and masks for complex synthesis; 4. Use "liquefaction" tools to adjust facial features; 5. Use "frequency separation" technology to perform delicate photo editing, these technologies can improve image processing level and achieve professional-level effects.

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 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.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

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),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools

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.