heifsave: allow creation of EXIF metadata (#2794)

Previously only update of input EXIF was possible
This commit is contained in:
Lovell Fuller 2022-05-10 08:14:53 +01:00 committed by GitHub
parent d91cfa4e53
commit 7e64c48ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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,