0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Will Norris
ba2da75102 parse crop and resize params before transforms 2017-09-27 00:04:04 +00:00
Will Norris
8eee5513ab refactor cropParams to return image.Rectangle 2017-09-26 20:55:03 +00:00
Will Norris
67619a67ae add support for exif orientation tag
if any transformation is requested, first apply any additional
transformation necessary to correct for the EXIF orientation tag, since
it is stripped from the resulting image.

Fixes #63
2017-09-09 06:13:33 +00:00
Will Norris
07c54b46e3 normalize rotate values
A -90 or 630 degree rotation is the same as 270.
2017-09-09 06:12:19 +00:00
Will Norris
03d75816a0 fix ordering of flip and rotation transformations
Fixes #112
2017-09-06 22:01:13 +00:00
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