Page 1 of 1

1.8.0 - Multipages and multiresolutions Tiff image isn't well displayed

Posted: Mon Sep 23, 2024 11:42 am
by XavierR
XnView: MP 1.6.5 & 1.8.0 64 bit
OS: Windows 11 64bit

1.8.0 - Multipages Tiff image isn't well displayed, maybe because each page doesn't have the same size

I downloaded some tiff images from the French Geographic Institute (IGN). Windows viewer shows it without problem but XN View MP doesn't show anything as attended.
https://data.geopf.fr/telechargement/do ... 5_0011.tif
https://data.geopf.fr/telechargement/do ... 5_0012.tif
https://data.geopf.fr/telechargement/do ... 5_0013.tif

Opening it with Gimp, it appears that it's a multipages Tiff (or in the XN View MP catalog). On the first page , it's the full resolution image. Each other page is the small image but with a smaller resolution than the precedent one. And there's 7 pages.

Effect: XN View MP is able to open only 3 of the 7 pages, but no one is well displayed. You have to take another viewer to open this tiff file (as the Windows default one)

To reproduce:
1. Open this file or this one
2. You can see that landscape picture is not welle displayed.
3.Try to browse page of the mutipages picture.
4 You can only open 3 of the 4 pages, but none is well displayed.

Actual behaviour (bug): XN View MP is unable to open and show neither the full resolution nor any of the page with a smaller resolution :bug:

Expected behaviour: XN View MP should at least open the the full resolution. But in fact it may be better to open all the pages.

Re: 1.8.0 - Multipages and multiresolutions Tiff image isn't well displayed

Posted: Tue Sep 24, 2024 8:06 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce with TIFF Tiled jpeg the problem.

Re: 1.8.0 - Multipages and multiresolutions Tiff image isn't well displayed

Posted: Tue Sep 24, 2024 8:22 am
by XavierR
Wow! Thanks you very much for this quick fix.
I'll experiment it when the 1.8.1 will be out.

Regards,
Xavier

Re: 1.8.0 - Multipages and multiresolutions Tiff image isn't well displayed

Posted: Thu Oct 10, 2024 2:40 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.8.1. Please check and confirm the bug fix here.

Re: 1.8.0 - Multipages and multiresolutions Tiff image isn't well displayed

Posted: Fri Oct 11, 2024 8:20 am
by XavierR
It's mainly but not fully fixed.

I can open the three first pages on seven without problem. But it failed silently to open 4th to 7th pages.

I tried multipages extract to JPEG with the integrated conversion tool, but it failed in the same way.

I's important to say that' the first page is the most important as it's the full resolution one :D. And this part of the job is well done as other pages are only overviews. But it's also surprising to see that XnView fails to open the 4 littlest images on the seven.

But I guess it won't be long before you'll fix it. :wink:

I don't know if it can help but I suppose that these IGN photos are produced with some tool as the gdal utility, through its GeoTIFF driver. Using the gdalinfo command on one of these file, I got this log:

Code: Select all

gdalinfo  "C:\tmp\IGNF_PVA_1-0__1949__CDUR001155_1949_DUR_115_0009.tif"
Driver: GTiff/GeoTIFF
Files: C:\tmp\IGNF_PVA_1-0__1949__CDUR001155_1949_DUR_115_0009.tif
Size is 5060, 3650
Metadata:
  TIFFTAG_XRESOLUTION=285.034
  TIFFTAG_YRESOLUTION=285.034
  TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
Image Structure Metadata:
  LAYOUT=COG
  COMPRESSION=JPEG
  INTERLEAVE=BAND
  JPEG_QUALITY=90
  JPEGTABLESMODE=1
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 3650.0)
Upper Right ( 5060.0,    0.0)
Lower Right ( 5060.0, 3650.0)
Center      ( 2530.0, 1825.0)
Band 1 Block=512x512 Type=Byte, ColorInterp=Gray
  Overviews: 2530x1825, 1265x913, 633x457, 317x229, 159x115, 80x58