mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-25 11:13:51 +02:00
Preserve GIF bit-per-sample
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
### Add
|
||||
- Add `IMGPROXY_URL_REPLACEMENTS` config.
|
||||
|
||||
### Change
|
||||
- Preserve GIF's bit-per-sample.
|
||||
|
||||
## [3.17.0] - 2023-05-10
|
||||
### Add
|
||||
- Add `process_resident_memory_bytes`, `process_virtual_memory_bytes`, `go_memstats_sys_bytes`, `go_memstats_heap_idle_bytes`, `go_memstats_heap_inuse_bytes`, `go_goroutines`, `go_threads`, `buffer_default_size_bytes`, `buffer_max_size_bytes`, and `buffer_size_bytes` metrics to OpenTelemetry.
|
||||
|
@@ -712,7 +712,9 @@ vips_webpsave_go(VipsImage *in, void **buf, size_t *len, int quality) {
|
||||
int
|
||||
vips_gifsave_go(VipsImage *in, void **buf, size_t *len) {
|
||||
#if VIPS_SUPPORT_GIFSAVE
|
||||
return vips_gifsave_buffer(in, buf, len, NULL);
|
||||
int bitdepth = vips_get_bits_per_sample(in);
|
||||
if (bitdepth <= 0 || bitdepth > 8 ) bitdepth = 8;
|
||||
return vips_gifsave_buffer(in, buf, len, "bitdepth", bitdepth, NULL);
|
||||
#else
|
||||
vips_error("vips_gifsave_go", "Saving GIF is not supported (libvips 8.12+ reuired)");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user