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

20 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
fc79b851b2 fix go lint warnings
- handle errors where possible
- explicitly ignore errors where it makes sense to
- fix deprecations and unused var
2020-09-09 15:44:09 -07:00
Will Norris
7eeacfca7a standardize copyright statements (Inc -> LLC) 2019-11-30 10:04:17 -08:00
Will Norris
a7a8966289 add miscellaneous tests
also fix minor bug in detecting content type for content less than 512
bytes.
2019-06-11 14:02:44 -07: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
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