Hello folks!
I have errors when loading multi page TIFFs using wxImage: some are successfully loaded but most generate some errors or warnings.
The number of pages in these TIFFs varies from 2 to 13.
For example, an image with 13 pages generates these errors:
- tiff module: image
- Integer overflow in TIFFVTileSize
- tiff module: TIFFReadDirectory
- image: cannot handle zero tile size
- TIFF: Error loading image
and the GetImageCount returns 0
Another one seems to be successfully loaded but with a series of warnings:
- tiff module: TIFFReadDirectory
- image: unknown field tag 32934 (0x80a6) encountered
Any ideas ?
Note: I use wxWidgets 2.6.3 on Windows XP
Error loading multi page tiff with wxImage Topic is solved
- tierra
- Site Admin
- Posts: 1355
- Joined: Sun Aug 29, 2004 7:14 pm
- Location: Salt Lake City, Utah, USA
- Contact:
wxWidgets comes with a really old version of libtiff. I don't think it's old enough that it's missing any new tiff features (when was the last one added?), but it may have some bugs causing this that have since been fixed in newer versions of libtiff. You could try to update the sources in wxWidgets and rebuild it yourself, though this is something that really should be updated in wxWidgets sources either way, so it may help to request this on the mailing list (it's been brought up in the last year, but nothing was done about it).
It might also help to know what application (and version) was used to create the tiff files in question.
It might also help to know what application (and version) was used to create the tiff files in question.
Someone in my company manages the wxWidgets sources update and its compilation, but I will try to download, compile and test myself the last version of wxWidgets.tierra wrote:wxWidgets comes with a really old version of libtiff. I don't think it's old enough that it's missing any new tiff features (when was the last one added?), but it may have some bugs causing this that have since been fixed in newer versions of libtiff. You could try to update the sources in wxWidgets and rebuild it yourself, though this is something that really should be updated in wxWidgets sources either way, so it may help to request this on the mailing list (it's been brought up in the last year, but nothing was done about it).
It might also help to know what application (and version) was used to create the tiff files in question.
The TIFFs were created a long time ago, so I don't really remember the software used, but I think it was an old version of Paint Shop pro.
As far as I know, Ms visual studio 7.1 is used, and libtiff enclosed sources are used, not external ones.Belgabor wrote:How do you compile wxWidgets? I use Mingw/msys and having installed libtiff before compiling wxWidgets makes it use the external (recent) one, not the enclosed sources.
I will try new wxWidgets with external libtiff and tell you