Will Norris
4533f0c68a
allow crop options to be floats and negative
...
values between 0 and 1 have the same behavior as the size option - it is
treated as a percentage of the original image size. Negative values for
cx and cy are calculated from the bottom and right edges of the image.
2017-08-31 07:27:35 +00:00
Maciej Tarnowski
1b70c6afd0
Implement rectangular crop functionality
...
Fixes #19
2017-08-31 03:50:25 +00:00
Will Norris
49480c4693
add missing license headers on test files
2016-06-22 13:54:16 -07:00
Will Norris
d9e4cf282a
minor cleanup of resizeParams code
2015-11-26 12:05:13 -08:00
orian
8efff4b6a9
Skip resizing if requested size bigger then original
2015-10-14 18:25:48 +02:00
orian
431898ec9a
Extract resizeParams method.
2015-10-14 18:15:57 +02:00
Rune Madsen
4e60c683b0
scaleup flag
2015-08-12 14:39:38 -04:00
Will Norris
d74dd6e985
rename jpegQuality to defaultQuality
...
Also fix a few go vet errors
2015-02-12 14:21:26 -08:00
Will Norris
76faab6363
add lots more tests
2014-12-04 17:32:40 -08:00
Will Norris
dd1df4631b
add tests for transformImage
2014-12-04 12:36:08 -08:00