Crop returns the rectangular sub-image bounded by `rect`. The rectangle is interpreted in the image's coordinate space (origin top-left) and intersected with the image bounds — a rect that extends past the bounds is silently clipped rather than rejected, so the editor's crop tool (TASK-880) can be l
(img image.Image, rect image.Rectangle)
| 53 | // extends past the bounds is silently clipped rather than rejected, |
| 54 | // so the editor's crop tool (TASK-880) can be lazy with rounding. |
| 55 | Crop(img image.Image, rect image.Rectangle) (image.Image, error) |
| 56 | |
| 57 | // Encode writes img to w in the given format ("png" / "jpeg"). |
| 58 | // JPEG is encoded at quality 85 — small enough for thumbnails, |
no outgoing calls