It is difficult to say exactly how many ways of cropping unnecessary edges of an image exist in the graphics editor Adobe Photoshop. Below are four of them - these are perhaps the most commonly used options.
It is necessary
Graphic editor Adobe Photoshop
Reduce the "canvas size" as one of the options for cropping the edges of the image. The point of this method is to narrow the image frame - everything that remains outside the frame will be cropped when the image is subsequently saved to a file. First, in an open document, create a duplicate of the main layer by pressing the key combination CTRL + J. The duplicate will be needed if Photoshop does not allow changing the main (background) layer, and you need to adjust the position of the picture relative to the narrowed canvas frame.
Open the "Image" section in the menu and select the "Canvas size" line. This action corresponds to pressing the keyboard shortcut alt = "Image" + CTRL + C. This command opens a window in which you need to set new values for the width and height of the image.
Change the numbers in the Width and Height boxes and click OK. The editor will warn you that the new sizes are smaller than the previous ones - click "Continue", and the visible area of the picture will be reduced in accordance with the dimensions you specified.
Turn on the Move tool by pressing the V key. Now you can move the created copy of the main layer with the mouse or with the arrow keys so that the part of the image that you wanted to crop remains "off-screen".
Another way to crop the unnecessary in the picture is to use the "Frame" tool. To enable it, press the C key or click the corresponding icon on the toolbar.
Move the cursor over the upper left corner of the area of the picture that you want to remain after cropping. Press the left mouse button and, without releasing it, move the cursor to the lower right point of this area. This will select a rectangle with three anchor points on each side.
Move the anchor points with the mouse to fine-tune the cropping borders, and when you're done with this, press the Enter key and the editor will remove everything that remains outside the selected frame.
The third way is to use the Trimming function. It makes sense to use this method when you need to crop transparent margins around an image or text layer. The "Trimming" command is placed in the menu in the "Image" section and opens a separate window. You should make sure that there is a check mark next to the item "Transparent pixels" in this box, and click the "OK" button.
The fourth method involves using the Rectangular Marquee Tool. To enable it, just press the M key or click the corresponding icon in the toolbar. Using this tool, select the area of the image that you want to leave with the mouse and copy it to RAM by pressing the CTRL + C combination.
Create a new document by pressing the CTRL + N combination. The dimensions of this document will be exactly equal to the area of the image you copied, Photoshop will do it automatically. Therefore, when you paste the contents of RAM (CTRL + V) into the created document, this will be a copy of the original picture, but with cropped edges.