black screen with large TIFF pictures

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
N2A
Posts: 3
Joined: Fri Nov 14, 2014 3:48 pm

black screen with large TIFF pictures

Post by N2A »

Hello,

That's the first time I ask for something here, so I'll try to be as precise as possible :

I don't know wether it's a bug or if it's normal (you can move my post according to that if I'm wrong) but when I'm trying to open TIFF pictures (multipages) I just get a black screen (I mean all the picture is in black but not my screen actually).

The point is when I open them with windows preview/Irfanview it works normally.

Another crucial (maybe) point is when I rotate these pictures with win preview, I can then open them with XnView... but their size is increased three times than before rotating

I have the same problem with XnConvert if that can help!

Thanks for any piece of answer (or whole!)

N2A

PS: Have a notebook win 7 32bits
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: black screen with large TIFF pictures

Post by cday »

N2A wrote:I don't know whether it's a bug or if it's normal ... but when I'm trying to open TIFF pictures (multipages) I just get a black screen (I mean all the picture is in black but not my screen actually).

The point is when I open them with windows preview/Irfanview it works normally.

Another crucial (maybe) point is when I rotate these pictures with win preview, I can then open them with XnView... but their size is increased three times than before rotating

I have the same problem with XnConvert if that can help!

PS: Have a notebook win 7 32bits
The ideal would be if you could upload a sample file, but as the current forum attachment limit is 1MiB that could be difficult; do you have or can you create a small enough example file that shows the problem, or could you upload a file to a file hosting service and provide a link?

Do you know which program the files were created in, and whether the same issue applies to single-page files, which would be rather smaller? If opening the file in another program and then saving it overcomes the problem, that suggests a quirk in the original program used to create the files that isn't recognised in XnView software.

If the pixel dimensions of the images are very large, the limit to the amount of ram that can be addressed in a 32-bit system could be reached, although I'm not sure if other software could handle memory differently.
N2A
Posts: 3
Joined: Fri Nov 14, 2014 3:48 pm

Re: black screen with large TIFF pictures

Post by N2A »

Here is one of the problematic file : http://ovh.to/YsrPud5 (not even so large that one) I've tried on a 16gb RAM Win 7 64b as well but I got the same result.


The files are created in Panoptiq (it scans microscopic blades). I don't know why the pictures are multipage ones but anyway I can't obtain single-page pictures with that software (settings are really limited).

The picture is not completely black : a small mosaic of some zones of the picture appears on the left side

Thank you for taking my problem into considerations
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: black screen with large TIFF pictures

Post by cday »

The file you uploaded is a tiled TIFF with JPG compression, the first image has quite large pixel dimensions but the following images are smaller.

There has evidently been a problem with similar files in the past as in the following post:

http://newsgroup.xnview.com/viewtopic.php?f=35&t=26063

It would appear that the issue hasn't been resolved yet, which seems surprising if other readily available viewers can open the file... :(
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: black screen with large TIFF pictures

Post by XnTriq »

I can confirm cday's observation that Panoptiq seems to produce JPEG-encoded pyramidal (tiled multi-resolution) TIFFs.

Perhaps the following information will be of use to Pierre:
AWare Systems (TIFF File Format FAQ » [url=http://www.awaresystems.be/imaging/tiff/faq.html#q9]So what are the defined tags exactly? Where can I find information on any specific tag?[/url]) wrote:The number one source on this is the TIFF specification. Note that this doesn't include any private tags or custom tags, of course. Also, please note that the JPEG-in-TIFF section is overridden by TechNote2, absorbed in TIFF Specification Supplement 2
RemoteSensing.org (LibTIFF » [url=http://www.remotesensing.org/libtiff/document.html]TIFF documentation[/url]) wrote:Draft TIFF Technical Note #2 covers problems with the TIFF 6.0 design for embedding JPEG-compressed data in TIFF, and describes an alternative.
Related topics:
This is what AsTiffTagViewer has to say about the 4 “pages” inside the sample (136-l-s-21-g-25x.tif) provided by N2A:
Page #1 (resolution X * Y) wrote:

Code: Select all

ImageWidth (1 Short): 7098
ImageLength (1 Short): 6441
BitsPerSample (3 Short): 8, 8, 8
Compression (1 Short): JPEG Technote #2
Photometric (1 Short): RGB
ImageDescription (34 ASCII): Panoptiq|AppMag = 2|MPP = 2.87976 
SamplesPerPixel (1 Short): 3
PlanarConfig (1 Short): Contig
TileWidth (1 Short): 512
TileLength (1 Short): 512
TileOffsets (182 Long): 16, 9273, 18530, 27787, 37044, 50432, 71650,...
TileByteCounts (182 Long): 9257, 9257, 9257, 9257, 13388, 21218, 29309,...
JpegTables (289 Undefined): 
YCbCrSubsampling (2 Short): 2, 2
Page #2 (resolution X/2 * Y/2) wrote:

Code: Select all

ImageWidth (1 Short): 3549
ImageLength (1 Short): 3220
BitsPerSample (3 Short): 8, 8, 8
Compression (1 Short): JPEG Technote #2
Photometric (1 Short): RGB
ImageDescription (34 ASCII): Panoptiq|AppMag = 2|MPP = 2.87976 
SamplesPerPixel (1 Short): 3
PlanarConfig (1 Short): Contig
TileWidth (1 Short): 512
TileLength (1 Short): 512
TileOffsets (49 Long): 10561701, 10570958, 10585235, 10612169,...
TileByteCounts (49 Long): 9257, 14277, 26934, 50199, 75815, 55051,...
JpegTables (289 Undefined): 
YCbCrSubsampling (2 Short): 2, 2
Page #3 (resolution X/4 * Y/4) wrote:

Code: Select all

ImageWidth (1 Short): 1774
ImageLength (1 Short): 1610
BitsPerSample (3 Short): 8, 8, 8
Compression (1 Short): JPEG Technote #2
Photometric (1 Short): RGB
ImageDescription (34 ASCII): Panoptiq|AppMag = 2|MPP = 2.87976 
SamplesPerPixel (1 Short): 3
PlanarConfig (1 Short): Contig
TileWidth (1 Short): 512
TileLength (1 Short): 512
TileOffsets (16 Long): 13523189, 13541216, 13612385, 13697340,...
TileByteCounts (16 Long): 18027, 71169, 84955, 12588, 75450, 130256,...
JpegTables (289 Undefined): 
YCbCrSubsampling (2 Short): 2, 2
Page #4 (resolution X/8 * Y/8) wrote:

Code: Select all

ImageWidth (1 Short): 887
ImageLength (1 Short): 805
BitsPerSample (3 Short): 8, 8, 8
Compression (1 Short): JPEG Technote #2
Photometric (1 Short): RGB
ImageDescription (34 ASCII): Panoptiq|AppMag = 2|MPP = 2.87976 
SamplesPerPixel (1 Short): 3
PlanarConfig (1 Short): Contig
TileWidth (1 Short): 512
TileLength (1 Short): 512
TileOffsets (4 Long): 14369253, 14450092, 14510825, 14569767
TileByteCounts (4 Long): 80839, 60733, 58942, 29614
JpegTables (289 Undefined): 
YCbCrSubsampling (2 Short): 2, 2
N2A
Posts: 3
Joined: Fri Nov 14, 2014 3:48 pm

Re: black screen with large TIFF pictures

Post by N2A »

Sorry I was offline this week end!

thank you for your answers even if they can't solve my problem for the moment, I hadn't catched that the other posts were about the same problem sorry for that.

Do you know why rotating the pictures allow me to open them with XnView? Is the rotation process (with win preview) changing completely my files?

Thanks
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: black screen with large TIFF pictures

Post by XnTriq »

N2A wrote:I hadn't catched that the other posts were about the same problem sorry for that.
That's alright. I'm just trying to “connect the dots” :-)
N2A wrote:Do you know why rotating the pictures allow me to open them with XnView? Is the rotation process (with win preview) changing completely my files?
Yes, I think so. Windows Photo Viewer seems to extract the “page” with the highest resolution and re-saves it either uncompressed or with a more common but less effective compression method.
wojciech.s
Posts: 1
Joined: Fri Jun 11, 2021 9:42 am

Re: black screen with large TIFF pictures

Post by wojciech.s »

I would like to refresh this topic. I've encountered similar problems with TIFFs which are aerial photos. They are opened by XnView MP 0.98.3 as black. Windows 10 builtin Photos app opens those files without problem. AFAIK those are tiled TIFFs.

I'm attaching info from tiffinfo. I can't share those files publicly as they are licensed, but I can send one of those via PM for testing only.

Code: Select all

TIFF Directory at offset 0x4f9ecf0 (83487984)
  Subfile Type: (0 = 0x0)
  Image Width: 17272 Image Length: 16955
  Tile Width: 128 Tile Length: 128
  Resolution: 714.286, 714.286 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  JPEG Tables: (1722 bytes)
TIFF Directory at offset 0x64920e0 (105455840)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 8636 Image Length: 8477
  Tile Width: 128 Tile Length: 128
  Resolution: 357.143, 357.143 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6a48cf0 (111447280)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 4318 Image Length: 4238
  Tile Width: 128 Tile Length: 128
  Resolution: 178.571, 178.571 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6bc37b0 (112998320)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 2159 Image Length: 2119
  Tile Width: 128 Tile Length: 128
  Resolution: 89.2857, 89.2857 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c1fd10 (113376528)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 1079 Image Length: 1059
  Tile Width: 128 Tile Length: 128
  Resolution: 44.6429, 44.6429 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c37684 (113473156)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 539 Image Length: 529
  Tile Width: 128 Tile Length: 128
  Resolution: 22.3214, 22.3214 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c3e1c4 (113500612)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 269 Image Length: 264
  Tile Width: 128 Tile Length: 128
  Resolution: 11.1359, 11.1235 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c405cc (113509836)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 134 Image Length: 132
  Tile Width: 128 Tile Length: 128
  Resolution: 5.54324, 5.56174 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c41380 (113513344)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 67 Image Length: 66
  Tile Width: 128 Tile Length: 128
  Resolution: 2.77085, 2.78087 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c41b18 (113515288)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 33 Image Length: 33
  Tile Width: 128 Tile Length: 128
  Resolution: 1.36482, 1.39024 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)
TIFF Directory at offset 0x6c42068 (113516648)
  Subfile Type: reduced-resolution image (1 = 0x1)
  Image Width: 16 Image Length: 16
  Tile Width: 128 Tile Length: 128
  Resolution: 0.661682, 0.674082 pixels/cm
  Bits/Sample: 8
  Compression Scheme: JPEG
  Photometric Interpretation: YCbCr
  YCbCr Subsampling: 2, 2
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Reference Black/White:
     0:     0   255
     1:   128   255
     2:   128   255
  Tag 33919: 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  JPEG Tables: (574 bytes)

TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
TIFFReadDirectory: Warning, 1_1201.tif: unknown field with tag 33919 (0x847f) encountered.
Post Reply