"Not enough memory" errors opening some TIFF files

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
Aolei
Posts: 13
Joined: Tue Dec 21, 2004 10:43 pm

"Not enough memory" errors opening some TIFF files

Post by Aolei »

Found a number of TIFF files which XnView won't open while other viewers do (BlueView, Windows Photo Viewer, Paint etc.)
The error I get from XnView is "Not enough memory" but the files are much small than others I regularly open and my workstation has 96GB of RAM (Win7 Pro 64bit).
The images are 8 bit with LZW compression. If I resave without compression I can open them. If I resave with LZW again (using BlueView) I cannot.
I think the cause is something about the BlueView compression (recompressing the TIFF with XNView gives a bigger compressed file but it remains readable).
This is probably the same issue reported in: http://newsgroup.xnview.com/viewtopic.p ... ry+#p21077

I have uploaded a 55k sample file to: https://www.yousendit.com/download/WUJZ ... eEJDaDhUQw (file expires 1-Nov, or probably after 25 downloads)
(I understand this file is now in the public domain but to avoid any risk of appearing to leak confidential data I have made all pixels white - it still exhibits the issue though it is now rather boring!)

I used AsTiffTagViewer to view the properties of each TIF (although saved with LZW in each case the one written by XnView is quite a lot larger than the one written by BlueView):

Headers of a XnView saved and XnView readable TIFF:
ImageWidth (1 Long): 1696
ImageLength (1 Long): 42651
BitsPerSample (1 Short): 8
Compression (1 Short): LZW
Photometric (1 Short): Palette
ImageDescription (19 ASCII): converted PDS file
StripOffsets (10663 Long): 87126, 87310, 87606, 87902, 88236, 88572,...
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Long): 4
StripByteCounts (10663 Long): 183, 295, 295, 334, 336, 354, 395, 415, 400,...
XResolution (1 Rational): 200
YResolution (1 Rational): 200
PlanarConfig (1 Short): Contig
ResolutionUnit (1 Short): Inch
Software (32 ASCII): LIBFORMAT (c) Pierre-e Gougelet
Predictor (1 Short): 1
ColorMap (768 Short): 65535, 65535, 65535, 65535, 65535, 65535,...

Headers of a BlueView saved and XnView unreadable TIFF:
SubFileType (1 Long): Page
ImageWidth (1 Long): 1696
ImageLength (1 Long): 42651
BitsPerSample (1 Short): 8
Compression (1 Short): LZW
Photometric (1 Short): Palette
DocumentName (1 ASCII):
ImageDescription (19 ASCII): converted PDS file
StripOffsets (1 Long): 2314
Orientation (1 Short): TopLeft
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Long): 42651
StripByteCounts (1 Long): 1372772
XResolution (1 Rational): 200
YResolution (1 Rational): 200
PlanarConfig (1 Short): Contig
ResolutionUnit (1 Short): Inch
PageNumber (2 Short): 0, 0
ColorMap (768 Short): 65280, 65280, 65280, 65280, 65280, 65280,...
WangAnnotations (487 Byte): 0, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0, 164, 0,...
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Not enough memory" errors opening some TIFF files

Post by xnview »

right, i'll check...
Pierre.
Post Reply