fix write ICC profile to webp

ooops, a typo broke ICC profile write to webp 18 days ago

thanks augustocdias

see https://github.com/libvips/libvips/issues/1767
This commit is contained in:
John Cupitt 2020-08-05 15:29:54 +01:00
parent 420daf892b
commit b40baec28b

View File

@ -460,9 +460,6 @@ vips_webp_add_chunks( VipsWebPWrite *write )
const char *vips_name = vips__webp_names[i].vips;
const char *webp_name = vips__webp_names[i].webp;
if( strcmp( vips_name, VIPS_META_ICC_NAME ) == 0 &&
write->profile )
if( vips_image_get_typeof( write->image, vips_name ) ) {
const void *data;
size_t length;