Closed peterbe closed 9 years ago
In my opinion that's not necessary. An image.Image
provides that rectangle (and other metadata like color space information). By using the SubImage()
command of any image type you can crop images without having to rely on a third-party package to do so.
Wow! I didn't know that. I'll look into this SubImage()
thing.
I like this: https://code.google.com/p/appengine-go/source/browse/example/moustachio/resize/resize.go because I can supply a rectangle to crop the image.