Enlarge enlarges the image by width and height. Aspect ratio is maintained.
(width, height int)
| 70 | |
| 71 | // Enlarge enlarges the image by width and height. Aspect ratio is maintained. |
| 72 | func (i *Image) Enlarge(width, height int) ([]byte, error) { |
| 73 | options := Options{ |
| 74 | Width: width, |
| 75 | Height: height, |
| 76 | Enlarge: true, |
| 77 | } |
| 78 | return i.Process(options) |
| 79 | } |
| 80 | |
| 81 | // EnlargeAndCrop enlarges the image by width and height with additional crop transformation. |
| 82 | func (i *Image) EnlargeAndCrop(width, height int) ([]byte, error) { |