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

37 commits

Author SHA1 Message Date
Will Norris
7ba3f124eb cleanup license headers and contributing docs
- switch to "project authors" style copyright.  Instead of an AUTHORS
  file (https://opensource.google/docs/releasing/authors/), I just list
  Google as a major copyright holder in the README.
- use SPDX style license headers in source files
- remove CLA requirement from contributing docs
2021-03-10 12:24:13 -08:00
Will Norris
7f91379373 rename prometheus metrics and vars
Make names a little more consistent and align with naming docs at
https://prometheus.io/docs/practices/naming/
2020-02-24 08:27:30 -08:00
Ben Haan
8484518c93 add basic prometheus support
Fixes #121
2020-02-24 08:27:30 -08:00
Will Norris
7eeacfca7a standardize copyright statements (Inc -> LLC) 2019-11-30 10:04:17 -08:00
Will Norris
d4ba5205ff add support for bmp images
handle decoding and encoding bmp images with transformations.  Because
this isn't a popular file format, we don't actually expose it as an
option for format transformation.

Fixes #182
2019-06-11 04:25:08 +00:00
Will Norris
969ce986d2 update to latest version of the smartcrop package
Fixes #172
2019-03-22 19:17:22 +00:00
Will Norris
4a6b8653b6 fix minor go fmt and go vet issues 2019-03-22 08:05:59 +00:00
Will Norris
afbd254cdc add smartcrop feature
fixes #55
2017-09-27 00:54:15 +00:00
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
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)