[ITK Community] Windows TIFF size limit

Matt McCormick matt.mccormick at kitware.com
Thu Mar 6 22:44:50 EST 2014


On Thu, Mar 6, 2014 at 10:25 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:

>  Thanks.  I have tracked down the reason for the crash reading this
> compressed tiff in Windows.  The compression is DEFLATE (AKA ZIP).  The
> function TIFFReaderInternal::CanRead() in itkTIFFImageIO.cxx checks for
> COMPRESSION_NONE, COMPRESSION_PACKBITS and COMPRESSION_LZW, although
> COMPRESSION_DEFLATE is covered elsewhere in the code.  I added this line:
> || this->m_compression == COMPRESSION_DEFLATE
> and now the read proceeds successfully, as far as I can tell, and my
> program creates an uncompressed 4.5GB file.   This is progress!
>

Well done!  Any patches [1] are greatly appreciated :-)


>
> Unfortunately the file that is created does not identify itself as a valid
> TIFF.
> Irfanview says: Decode error!  Invalid or unsupported TIF file.
> When I try to read it with ITK, the message is:
> File: ...itkImageFileReader.hxx
> Line: 143
> Description: Could not create IO object for file preeq_u.tif
> Tried to create one of the following:
> JPEGImageIO
> ...
> TIFFImageIO
> ...
> You probably failed to set a file suffix, or set the suffix to an
> unsupported type.
>
> Well, the suffix is obviously correct, so there is another problem with
> the file.
>
> The saga continues...
>

Keep up the good fight :-),
Matt


 [1]
http://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140306/cd04f3d0/attachment-0002.html>


More information about the Community mailing list