unsigned char
*profile;
- unsigned long
- *tietz;
-
length=0;
if (ping == MagickFalse)
{
if ((TIFFGetField(tiff,37724,&length,&profile) == 1) &&
(profile != (unsigned char *) NULL))
(void) ReadProfile(image,"tiff:37724",profile,(ssize_t) length,exception);
- image->tietz_offset=0;
- if (TIFFGetField(tiff,37706,&length,&tietz) == 1)
- image->tietz_offset=tietz[0];
}
static void TIFFGetProperties(TIFF *tiff,Image *image,ExceptionInfo *exception)
uint32
count,
+ length,
type;
+ unsigned long
+ *tietz;
+
+
if (TIFFGetField(tiff,TIFFTAG_ARTIST,&text) == 1)
(void) SetImageProperty(image,"tiff:artist",text,exception);
if (TIFFGetField(tiff,TIFFTAG_COPYRIGHT,&text) == 1)
default:
break;
}
+ if (TIFFGetField(tiff,37706,&length,&tietz) == 1)
+ {
+ (void) FormatLocaleString(message,MagickPathExtent,"%lu",tietz[0]);
+ (void) SetImageProperty(image,"tiff:tietz_offset",message,exception);
+ }
}
static void TIFFGetEXIFProperties(TIFF *tiff,Image *image,
}
case PHOTOMETRIC_LOGL:
{
- (void) SetImageProperty(image,"tiff:photometric","CIE Log2(L)",exception);
+ (void) SetImageProperty(image,"tiff:photometric","CIE Log2(L)",
+ exception);
break;
}
case PHOTOMETRIC_LOGLUV:
&horizontal,&vertical);
if (tiff_status == 1)
{
- (void) FormatLocaleString(sampling_factor,MagickPathExtent,"%dx%d",
- horizontal,vertical);
+ (void) FormatLocaleString(sampling_factor,MagickPathExtent,
+ "%dx%d",horizontal,vertical);
(void) SetImageProperty(image,"jpeg:sampling-factor",
sampling_factor,exception);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),