1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

168 Commits

Author SHA1 Message Date
DarthSim
baf00f64f2 Drop deprecated stuff (MaxSrcDimension, GZipCompression, IMGPROXY_MAX_GIF_FRAMES, resizeCrop) 2021-03-15 16:47:35 +06:00
DarthSim
53f8b0dbdd Check timeout after every save attempt in saveImageToFitBytes 2021-03-10 16:03:11 +06:00
DarthSim
bad20a3f02 Fix animations loops and delays 2021-02-22 19:30:55 +06:00
DarthSim
be26e10ce5 Don't switch to autodetected format if source one supports animation but autodetected one doesn't 2021-01-18 22:53:49 +06:00
DarthSim
bac349558c AVIF support detection & AVIF enforcement 2021-01-18 21:56:36 +06:00
DarthSim
9ffb0f514d Crop by percentage 2021-01-18 21:14:15 +06:00
DarthSim
e48c557fc4 rotate processing option 2021-01-13 20:51:19 +06:00
DarthSim
6da8885605 IMGPROXY_AUTO_ROTATE config and auto_rotate processing option 2021-01-13 19:57:29 +06:00
DarthSim
c84e7ed34d Per-format default quality config 2021-01-13 17:58:36 +06:00
DarthSim
40563f9573 Ability to keep ICC profile 2021-01-12 20:43:09 +06:00
DarthSim
ca97c715a4 Fix copy memory on WebP size check 2020-12-28 16:41:07 +06:00
DarthSim
1260d27b0b Improved ICC profiles handling 2020-11-18 12:22:23 +06:00
DarthSim
1dc0c8c9a3 Disable scale-on-load for animated images 2020-09-28 21:15:16 +06:00
DarthSim
06b61af2a8 Fix dpr+extend 2020-09-28 16:04:24 +06:00
DarthSim
b8f5d4302d Fix DPR 2020-09-28 15:58:15 +06:00
DarthSim
1bd789df4e Add AVIF support 2020-09-16 16:15:01 +06:00
DarthSim
bdbb496c18 Convert all images to uchar 2020-09-11 17:20:12 +06:00
DarthSim
dc2c23c01a Check timouts after copy memory during image processing 2020-09-11 17:18:54 +06:00
DarthSim
27fb29706f Simplify scale-on-load code 2020-09-03 14:46:16 +06:00
DarthSim
c22d84e8dd Remove forgottem debug message 2020-09-03 14:20:13 +06:00
DarthSim
3882abae48 Cast to uchar when saving to BMP 2020-08-31 16:45:58 +06:00
DarthSim
9ad8bb1403 Fix WebP dimension limit handling. 2020-08-31 16:43:40 +06:00
DarthSim
e96bd07350 Typo 2020-08-21 18:56:30 +06:00
DarthSim
98ee337b00 Always flatten if the resulting format does not support alpha 2020-08-21 18:34:33 +06:00
DarthSim
965cd68ecf Fix padding and extend behaior when converting from a fromat without alpha support to one with alpha support 2020-08-21 18:05:28 +06:00
DarthSim
399995deea Downscale requested WebP dimensions when one of them exceeds WebP limit 2020-07-07 15:45:31 +06:00
DarthSim
73a5d794f3 Process animated images singlethreaded 2020-07-01 19:47:05 +06:00
John Koehl
616ec996b3
Implements #421 processing option to control meta stripping (#422)
* Implements processing option to control meta stripping

* Update based on code review comments

Change name of option to "stripmeta" and change how we handle config vs request setting logic

* Fix indentation style typo

* Fix indentation style typo

* Use full metadata naming for config and variables

Co-authored-by: John Koehl <johnk@zillowgroup.com>
Co-authored-by: John Koehl <jkoehl>
2020-07-01 19:45:33 +06:00
DarthSim
721c3a8b2c Fix and optimize processing of animated images 2020-05-06 21:58:28 +06:00
DarthSim
a18dbf76f0 Optimize memory usage 2020-04-22 19:20:35 +06:00
DarthSim
13546aa405 Fix unhandled panics during animated images processing 2020-04-22 19:19:12 +06:00
ILYA
12b415c9bd
Implement padding option (#358)
* Implement padding option

* Move padding `embed` to the right place

* Move padding `embed` to the right place

* Use general background option instead of specific padding's one

* Make padding options css-like and fully optional

* Add docs for new padding option

* Return error if padding embed fails

* Make padding outbounds and apply dpr for it

Co-authored-by: Ilya Melnitskiy <melnitskiy_i_m@onyx-team.com>
2020-04-09 15:43:56 +06:00
ILYA
4bd745f764
Improve trim method to accept color to be cut off and hor/ver alignment options (#357)
* Improve trim method to accept color to be cut off and hor/ver alignment options

* Make color and equality args truly optional

* Add docs for new trim params

Co-authored-by: Ilya Melnitskiy <melnitskiy_i_m@onyx-team.com>
2020-04-07 18:06:28 +06:00
DarthSim
6c60fb804f Remove HEIC saving; Remove JBIG from docker; Replace imagequant with quantizr in docker 2020-03-12 20:03:29 +06:00
DarthSim
06c7df1e14 Properly name go module & update docs 2020-02-27 22:30:31 +06:00
DarthSim
1d1caeb06a Fix loadind BMP stored in ICO 2020-02-14 19:33:14 +06:00
DarthSim
94626f0861 Remove Stripmetadata from processing options 2020-01-30 22:04:55 +06:00
sauerbraten
89f8a4e11c
Add option to keep metadata/tags in output image (#329)
* add env var to disable stripping metadata

by default, all metadata will be stripped (as before)

* always strip orientation tags when rotating the image

in case IMGPROXY_STRIP_METADATA is false

* document IMGPROXY_STRIP_METADATA env var

* remove ICC profile after importing it

needed, in case metadata aren't stripped from the output image
2020-01-30 21:43:08 +06:00
DarthSim
03bc5c820c Don't scale X/Y for focus point gravity 2020-01-30 20:41:28 +06:00
DarthSim
ee450bec46 Trim processing option 2020-01-17 15:54:50 +06:00
DarthSim
1cd9a92582 Don't combine crops 2020-01-15 18:25:14 +06:00
realsim
f83b73ab38 Use image height to calculate watermark top offset (#313) 2019-12-27 12:19:14 +06:00
DarthSim
05cd1286a4 Add gravity to extend option 2019-12-25 17:04:16 +06:00
DarthSim
7c7ac56a48 Refactor subpackages 2019-12-25 15:18:51 +06:00
DarthSim
25a6c9ba39 Minor fixes in max_bytes docs & code 2019-11-29 18:40:01 +06:00
Dmitry Zuev
d74c402066 Implement Max Bytes Filter (#275)
* Implement Max Bytes Filter

* Update according to code review comments

* Refactor according to code review comments
2019-11-29 18:27:35 +06:00
DarthSim
a96e25a442 Fix segfaults on watermarking in somme cases 2019-11-14 18:48:26 +06:00
DarthSim
0d5d2f5ec2 po.Resize => po.ResizingType 2019-10-11 17:05:20 +06:00
DarthSim
aac9997387 Fix lint errors 2019-10-10 19:20:25 +06:00
DarthSim
a35b7a99c4 Convert image to RGB before watermarking 2019-10-10 19:18:45 +06:00