From: cristy Date: Fri, 17 Sep 2010 01:56:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8893 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15d8d214534eb706f9cec7857cf0b724168c8797;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index 926f59b55..0f01c273e 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2280,6 +2280,7 @@ static void TIFFSetProperties(TIFF *tiff,Image *image) const char *value; + (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,image->filename); value=GetImageProperty(image,"tiff:hostcomputer"); if (value != (const char *) NULL) (void) TIFFSetField(tiff,TIFFTAG_HOSTCOMPUTER,value); @@ -2295,9 +2296,9 @@ static void TIFFSetProperties(TIFF *tiff,Image *image) value=GetImageProperty(image,"tiff:model"); if (value != (const char *) NULL) (void) TIFFSetField(tiff,TIFFTAG_MODEL,value); - (void) TIFFSetField(tiff,TIFFTAG_SOFTWARE, - GetMagickVersion((size_t *) NULL)); - (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,image->filename); + value=GetImageProperty(image,"tiff:software"); + if (value != (const char *) NULL) + (void) TIFFSetField(tiff,TIFFTAG_SOFTWARE,value); value=GetImageProperty(image,"tiff:copyright"); if (value != (const char *) NULL) (void) TIFFSetField(tiff,33432,value);