Image
*image;
- TIFFFieldInfo
- *ignore;
-
register ssize_t
i;
size_t
count;
+ TIFFFieldInfo
+ *ignore;
+
+ if (TIFFGetReadProc(tiff) != TIFFReadBlob)
+ return;
image=(Image *)TIFFClientdata(tiff);
tags=GetImageArtifact(image,"tiff:ignore-tags");
if (tags == (const char *) NULL)
entry->format_type=ImplicitFormatType;
entry->seekable_stream=MagickTrue;
entry->thread_support=NoThreadSupport;
- entry->semaphore=AcquireSemaphoreInfo();
entry->description=ConstantString("Raw CCITT Group4");
entry->mime_type=ConstantString("image/tiff");
entry->module=ConstantString("TIFF");
entry->endian_support=MagickTrue;
entry->seekable_stream=MagickTrue;
entry->thread_support=NoThreadSupport;
- entry->semaphore=AcquireSemaphoreInfo();
entry->description=ConstantString("Pyramid encoded TIFF");
entry->mime_type=ConstantString("image/tiff");
entry->module=ConstantString("TIFF");
entry->seekable_stream=MagickTrue;
entry->stealth=MagickTrue;
entry->thread_support=NoThreadSupport;
- entry->semaphore=AcquireSemaphoreInfo();
entry->description=ConstantString(TIFFDescription);
if (*version != '\0')
entry->version=ConstantString(version);
entry->endian_support=MagickTrue;
entry->seekable_stream=MagickTrue;
entry->thread_support=NoThreadSupport;
- entry->semaphore=AcquireSemaphoreInfo();
entry->description=ConstantString(TIFFDescription);
if (*version != '\0')
entry->version=ConstantString(version);
entry->endian_support=MagickTrue;
entry->seekable_stream=MagickTrue;
entry->thread_support=NoThreadSupport;
- entry->semaphore=AcquireSemaphoreInfo();
entry->description=ConstantString("Tagged Image File Format (64-bit)");
if (*version != '\0')
entry->version=ConstantString(version);
(image_info->type != OptimizeType))
(void) SetImageType(image,image_info->type,exception);
compression=UndefinedCompression;
+ if (image->compression != JPEGCompression)
+ compression=image->compression;
if (image_info->compression != UndefinedCompression)
compression=image_info->compression;
switch (compression)
}
}
}
- if (photometric == PHOTOMETRIC_RGB)
- (void) TransformImageColorspace(image,sRGBColorspace,exception);
switch (image->endian)
{
case LSBEndian:
if (rows_per_strip < 1)
rows_per_strip=1;
if ((image->rows/rows_per_strip) >= (1UL << 15))
- rows_per_strip=(image->rows >> 15);
+ rows_per_strip=(uint32) (image->rows >> 15);
(void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip);
if ((image->resolution.x != 0.0) && (image->resolution.y != 0.0))
{