mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-06-18 17:43:40 +02:00
Reset image resolution while stripping meta
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Change
|
||||
- Reset DPI while stripping meta.
|
||||
|
||||
## [2.16.6] - 2021-07-08
|
||||
### Fix
|
||||
|
||||
@@ -626,7 +626,14 @@ vips_arrayjoin_go(VipsImage **in, VipsImage **out, int n) {
|
||||
|
||||
int
|
||||
vips_strip(VipsImage *in, VipsImage **out) {
|
||||
if (vips_copy(in, out, NULL)) return 1;
|
||||
static double default_resolution = 72.0 / 25.4;
|
||||
|
||||
if (vips_copy(
|
||||
in, out,
|
||||
"xres", default_resolution,
|
||||
"yres", default_resolution,
|
||||
NULL
|
||||
)) return 1;
|
||||
|
||||
gchar **fields = vips_image_get_fields(in);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user