feat: allow to remove ICC profile metadata

This commit is contained in:
Tomas Aparicio 2015-06-13 22:11:54 +01:00
parent 941b15cd9a
commit 5d322714ec
5 changed files with 30 additions and 2 deletions

7
vips.h
View file

@ -86,7 +86,12 @@ vips_exif_orientation(VipsImage *image) {
int
has_profile_embed(VipsImage *image) {
return (vips_image_get_typeof(image, VIPS_META_ICC_NAME) > 0) ? 1 : 0;
return vips_image_get_typeof(image, VIPS_META_ICC_NAME);
};
void
remove_profile(VipsImage *image) {
vips_image_remove(image, VIPS_META_ICC_NAME);
};
int