Skip to content

Commit

Permalink
- don't remove pages metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
elad laufer committed Jan 19, 2022
1 parent 10d43d1 commit 4f38109
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vips/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ void remove_metadata(VipsImage *in) {

for (int i = 0; fields[i] != NULL; i++) {
if (strncmp(fields[i], VIPS_META_ICC_NAME, sizeof(VIPS_META_ICC_NAME)) &&
strncmp(fields[i], VIPS_META_ORIENTATION,
sizeof(VIPS_META_ORIENTATION))) {
strncmp(fields[i], VIPS_META_ORIENTATION, sizeof(VIPS_META_ORIENTATION)) &&
strncmp(fields[i], VIPS_META_N_PAGES, sizeof(VIPS_META_N_PAGES)) &&
strncmp(fields[i], VIPS_META_PAGE_HEIGHT, sizeof(VIPS_META_PAGE_HEIGHT))
) {
vips_image_remove(in, fields[i]);
}
}
Expand Down

0 comments on commit 4f38109

Please sign in to comment.