Reset image resolution while stripping meta

This commit is contained in:
DarthSim
2021-07-20 19:29:18 +06:00
parent d263eb612c
commit 016258f7eb
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -1,6 +1,8 @@
# Changelog
## [Unreleased]
### Change
- Reset DPI while stripping meta.
## [2.16.6] - 2021-07-08
### Fix
+8 -1
View File
@@ -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);