From: cristy Date: Sat, 22 Feb 2014 22:36:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2652 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ae12167d2e918d7d1a2cffc058a231c72b8f2a5;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index 64a6c22c8..928950eba 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2565,7 +2565,9 @@ static void TIFFSetProperties(TIFF *tiff,Image *image,ExceptionInfo *exception) const char *value; - (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,image->filename); + value=GetImageProperty(image,"tiff:document",exception); + if (value != (const char *) NULL) + (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,value); value=GetImageProperty(image,"tiff:hostcomputer",exception); if (value != (const char *) NULL) (void) TIFFSetField(tiff,TIFFTAG_HOSTCOMPUTER,value);