From 7e64c48ca9bc8eaf5d3482078e74da9a08bb7707 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 10 May 2022 08:14:53 +0100 Subject: [PATCH] heifsave: allow creation of EXIF metadata (#2794) Previously only update of input EXIF was possible --- libvips/foreign/heifsave.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libvips/foreign/heifsave.c b/libvips/foreign/heifsave.c index 18e6f7cb..333dabb6 100644 --- a/libvips/foreign/heifsave.c +++ b/libvips/foreign/heifsave.c @@ -196,9 +196,8 @@ vips_foreign_save_heif_write_metadata( VipsForeignSaveHeif *heif ) /* Rebuild exif from tags, if we'll be saving it. */ - if( vips_image_get_typeof( heif->image, VIPS_META_EXIF_NAME ) ) - if( vips__exif_update( heif->image ) ) - return( -1 ); + if( vips__exif_update( heif->image ) ) + return( -1 ); for( i = 0; i < VIPS_NUMBER( libheif_metadata ); i++ ) if( vips_image_get_typeof( heif->image,