Traditional Culture Encyclopedia - Traditional stories - How to cut photoshop?

How to cut photoshop?

1. Traditional map cutting

(1) Open a psd file, select the clipping tool in the left menu bar of ps, and select the slicing tool. First, we analyze this psd file, consciously divide it into several constituencies, and then use the slicing tool to cut out the patterns we need by dragging the mouse.

The slices marked in blue are selected manually, and the slices marked in gray are automatically generated. Then, we export these slices and select the file->; Export-> save in the format used by the Web and in the folder you want to use.

Question: Observing the above operation, you will find that cutting a pattern is too troublesome and time-consuming. What if an e-commerce website asks you to cut hundreds of patterns? So there is a more convenient way:

(2) General designers usually use reference lines when designing, so we can also use reference lines to simplify the cutting operation. First select the layer of a pattern you want to cut, and then drag the ruler on the left or above with the mouse to the boundary of the pattern, which will automatically absorb the reference line, which is more accurate, thus setting the reference line of this pattern, and similarly setting the reference lines of other patterns.

Because the reference lines are dense, there will be many unnecessary slices. We can click the right mouse button to delete unnecessary slices. We find it too tiring to cut many unused slices at once, so we suggest cutting psd files one by one, and then closing the reference line to check the cutting. Finally, export the slices to a folder.

The above is the traditional way to cut the map, which is troublesome, time-consuming and inaccurate, so we use the computer to cut the map accurately.

Cut the map accurately

Let's use photoshop script to make a faster and more accurate method of cutting pictures. Its advantages are time-saving and labor-saving automatic drawing and cutting, automatic computer calculation and more accurate size.

First, open a psd file and select File->; Export-> export the layer to a file-set its properties, select the storage location and type, check the transparent area, stagger, crop the layer, and finally run the export. This process will take several minutes. It is recommended to cut it piece by piece.

3.3. Precise cutting of Photoshop CC version-automatic cutting.

(1) First, we select the pattern to be cut and select its layer. Then set the parameters, select Edit-> Preferences-> Collaboration Tools-> Check Enable Generator, and then click OK. Select file-> generate-> image resource. We found an empty one. The asset folder will be generated in the directory where psd files belong. Finally, we changed the name suffix of this floor to. Png, and we found that more patterns were cut in the assets folder, so we cut a pattern.

(2) Based on (1), it is easy to export svg format, just change the name suffix of the layer where the pattern is located to. SVG。