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

25 commits

Author SHA1 Message Date
Will Norris
03d75816a0 fix ordering of flip and rotation transformations
Fixes #112
2017-09-06 22:01:13 +00:00
Will Norris
817908938e allow forcing encoding as tiff 2017-08-31 17:06:22 -07:00
Michael Carey
c1a9dab401 Support TIFF images. 2017-08-31 13:04:10 -07: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
Will Norris
81cb74ef7e add evaluateFloat helper function 2017-08-31 04:42:52 +00:00
Maciej Tarnowski
1b70c6afd0 Implement rectangular crop functionality
Fixes #19
2017-08-31 03:50:25 +00:00
Will Norris
328044540e add webp support (decode only)
if any transformation is requested, webp images will be encoded and
served as jpeg or png, defaulting to jpeg if no format is specified.

Fixes #88
2017-06-01 08:13:33 -07:00
Will Norris
b9cc9df4b6 add support for specifying output image format
For now, the options are "jpeg" and "png".  Gif is a little harder to
support because of the way we use the image/gif package to handle
animated gifs. I have also have trouble imagining someone wanting to use
gif over png. But if the need really exists, we can address it when it
comes up.

Fixes #89
2017-06-01 08:13:11 -07:00
Will Norris
a71584a63c skip transform if options don't request it
Fixes #64
2016-05-02 19:57:34 -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
dbf505d137 move gifresize into its own repo 2015-05-29 08:02:30 -07:00
Will Norris
db51a19ddb capture and return image encoding errors 2015-05-29 07:31:10 -07:00
Will Norris
bdf995c94f use new gifresize package on all gif images
Fixes #23
2015-05-15 16:07:00 -07:00
Will Norris
d74dd6e985 rename jpegQuality to defaultQuality
Also fix a few go vet errors
2015-02-12 14:21:26 -08:00
Pete Smith
e7b0a5b88c Add quality option
- Added 'q' option to specify quality (used for JPEGs)
- Updated tests
- Update documentation
2015-02-12 17:49:43 +00:00
Will Norris
dd1df4631b add tests for transformImage 2014-12-04 12:36:08 -08:00
Will Norris
882c2b3782 restructure transform code for easier testing 2014-12-04 09:02:25 -08:00
Will Norris
ea67c79ffe interpret negative height and width values as 0 2014-11-23 14:01:50 -08:00
Will Norris
4a5f24e4ec there's no need for Options to be a pointer 2014-11-19 21:59:52 -08:00
Will Norris
c5b279b947 move jpeg quality to const 2014-11-19 21:59:12 -08:00
Will Norris
1bf3ccab06 remove unnecessary break statements 2014-11-19 21:57:50 -08:00
Will Norris
a74e590181 restructure imageproxy package
- move binary from imageproxy.go to cmd/imageproxy/main.go
- move proxy package up to top level
2014-07-30 18:23:43 -07:00
Renamed from proxy/transform.go (Browse further)