Replacing SmartCrop with a Gravity option

This commit is contained in:
Mark van der Velden 2017-05-24 14:20:54 +02:00
parent d232b4098a
commit 855de7ca55
3 changed files with 7 additions and 6 deletions

View file

@ -27,6 +27,8 @@ const (
GravitySouth
// GravityWest represents the west value used for image gravity orientation.
GravityWest
// GravitySmart enables libvips Smart Crop algorithm for image gravity orientation.
GravitySmart
)
// Interpolator represents the image interpolation value.
@ -193,7 +195,6 @@ type Options struct {
Compression int
Zoom int
Crop bool
SmartCrop bool
Enlarge bool
Embed bool
Flip bool