Home > Web Front-end > PS Tutorial > body text

The first part of the series on the skillful use of photoshop for front-end engineer skills - Preparation

高洛峰
Release: 2017-02-20 09:29:50
Original
1490 people have browsed it

Previous words

Photoshop is a software that front-end engineers cannot avoid. The software itself is very powerful, but we only need to use this tool to complete basic cutting work. This article will start the first article in the series of photoshop skills - preparation

Function

Why should we cut the picture? This requires talking about the project process. A complete project process involves market demand analysis, product prototypes, UI design drawings based on the project prototypes, front-end production pages based on the design drawings, back-end data-related work, and website testing before going online.

What we often call cutting is actually cutting the UI design into the materials needed for the web page. Specifically, where on the web page do you need materials? Mainly includes two categories:

 【1】 tag in HTML

<img src="img/xx.jpg" alt="">
Copy after login

 【2】Background-image in CSS Attribute

{background-image: url(../img/xx.jpg);}
Copy after login

Initialization

Front-end engineers need to make some initialization settings before using photoshop, mainly including the following 3

 【1】Preference settings

编辑 > 首选项 > 单位与标尺 > 把标尺和文字的单位都改成像素
Copy after login

 前端工程师技能之photoshop巧用系列第一篇——准备篇  【2】Panel settings (under the window menu )

1. Tools (two-column or single-column layout can be switched)

2. Options (one-to-one correspondence with the currently selected tool)

3. Information

 4. Layer (Layer operation)

 5. History record (record historical operations) , often used for rollback)

 前端工程师技能之photoshop巧用系列第一篇——准备篇  【3】Auxiliary view (under the view menu)

  1. Alignment (After turning on alignment, the layer There will be an automatic adsorption function when moving to another layer or guide line or the edge of the document)

 2. Ruler

 3. Guide line (View> Display> Guides)

  [Note] You need to check Show additional content to see the guides and grid in the canvas

 前端工程师技能之photoshop巧用系列第一篇——准备篇

Common tools

【1】Move tool (commonly used to select layers and move pictures)

In the selection tool The options panel in has two options: layer and group. Group generally refers to a folder that may contain multiple layers, while layer only refers to the layer itself

  [Note] Corresponding to the move tool The automatic selection on the options panel must be checked

 【2】Rectangular Marquee Tool(commonly used to select an area and view information with the information panel)

 If you observe carefully , you will find that there is a small triangle in the lower right corner of the rectangular marquee tool. If you click without releasing the mouse, multiple options will pop up, including rectangular marquee tool, elliptical marquee tool, single row marquee tool and single column marquee tool. .

[Note] If you hold down the shift key while using the rectangular marquee tool, a square will be generated

Generally, using the rectangular marquee tool is to create a new selection, but in practice , you can also perform the following operations on the selection

1. Add to the selection: shift

2. Subtract from the selection: alt

3. Intersect with the selection: shift + alt

 【3】Magic Wand Tool(Cut out irregular images)

  [Note]Tolerance is used to set the range when color sampling, and a tolerance of 0 represents Only select the current color value

【4】Crop Tool + Slice Tool(Crop Picture)

  [Note] The crop tool cuts the work area, no matter how many pictures it is Layers can be cropped

【5】Zoom tool (zoom canvas)

【tips】Commonly used zoom shortcut keys
1. Zoom in:
a , ctrl+plus sign

b.alt+scroll up

2.Zoom out:

a.ctrl+minus

b.alt+scrolldown

3. Display as 100%: ctrl+1

【6】Color Picker + Eyedropper Tool (Color Picking)

1. Fill the foreground color: alt+del

2. Fill the background color: ctrl+del

 3. Switch the foreground color and background color:

 【8】Grapple Tool(Move the visible area)

  The actual shortcut key of the Gripper Tool is the H key. Click the H key, and then click the left mouse button without releasing it. , the image will be displayed on the screen in a form that fits the screen size. When you move the mouse and release the left button, the screen will enlarge the image area where the mouse is located

Shortcut keys

In addition to the above After the shortcut keys mentioned, there are also some commonly used shortcut keys that need to be noted 前端工程师技能之photoshop巧用系列第一篇——准备篇

【1】Single-step undo or forward: ctrl+z

【2】Continuous undo: ctrl +alt+z

 【3】Go back to a certain step: Click the corresponding step

 【4】Deselect: ctrl+d

 【5】 Transform: ctrl+t

 【6】Save: ctrl+shift+alt+s

 【7】Merge layers: ctrl+e

 【8】Stamp See layer: ctrl+shift+alt+e

[Note] For some tools, you need to call the size of the tool. The general shortcut key is left bracket [and right bracket]

More The first article in the series on the skillful use of photoshop for front-end engineer skills - Preparation For related articles, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template