Crop
A photo of a document often shows the table, a hand or other papers around it. Crop keeps the rectangle that holds the document and drops the rest.
Use it
- Press Edit, then Crop. A rectangle appears inside the image, with a handle at each corner.
- Drag the corners until the rectangle frames the document. The panel of Crop has zoom buttons, so you can zoom in to place them precisely.
- Press Done, or
Enter, to add the crop to the edits. Cancel this tool, orEsc, closes Crop without changing anything.
While Crop is open, the image looks as the result will, with Adjust and Clean up included. The crop is an edit like any other: Undo removes it, and Apply makes it permanent.
Corner handles
- The handles stay inside the image, and the rectangle never turns inside out.
- With a finger or a pen, a magnifier shows the area under it while it drags a corner, so it does not hide where the corner lands.
- Without dragging, press a handle and then tap where its corner goes. The handle stays highlighted until then, the zoom buttons zoom toward its corner, and
Esclets go of it. - With the keyboard, Tab moves between the handles, and the arrow keys move the focused handle 1 screen pixel, or 10 with Shift.
+and-zoom toward the focused handle. Screen readers announce each move.
Crop or Straighten?
Crop keeps a rectangle as it is. In a photo taken at an angle, the document looks like a trapezoid, and no rectangle fits it. Use Straighten for those: it moves each corner on its own and flattens the page.
From code
Crop is in the edit bar by default, with the id 'crop' in tools. With toolbar: false, open it with openTool(), and close it with confirmTool() or cancelTool():
ts
pic.edit()
pic.openTool('crop')
// Later, from a button of your own
pic.confirmTool()