mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-09 07:28:44 -07:00
feat: allow to remove ICC profile metadata
This commit is contained in:
parent
941b15cd9a
commit
5d322714ec
5 changed files with 30 additions and 2 deletions
7
vips.h
7
vips.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue