Resize returns a new image with the longer edge fitted to maxLong, preserving aspect ratio. Images already within maxLong are returned unchanged so callers don't pay the encode cost on pass-through. maxLong must be positive.
(img image.Image, maxLong int)
| 39 | // returned unchanged so callers don't pay the encode cost on |
| 40 | // pass-through. maxLong must be positive. |
| 41 | Resize(img image.Image, maxLong int) (image.Image, error) |
| 42 | |
| 43 | // Rotate returns a new image rotated by deg degrees clockwise. |
| 44 | // Only multiples of 90 (90, 180, 270, plus their negatives) are |
no outgoing calls