-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VlivCreateTrueColorDIBSection failed with error 87: The parameter is incorrect #10
Comments
Hi, Thee not many parameters to VlivCreateTrueColorDIBSection (that calls CreateDIBSection with very standard parameter) that can fail. It seems that CreateDIBSection is limited to 32 bit data so no more than 2 gb as I found out googling... Can you run tiffinfo on this image ? if your image is single strip of the whole height, that would be not a good case for Vliv (or any other using CreateDIBSection with 4 byte/pixel). IrfanView might use another API or break the data into chunks. For a non-tiled image, 26315x30904x4 is 3.5 gigabyte to allocate. Is there's any chance you can convert this tiff to a tiled format, or at least to strips with more than 1 strip ? I am usually using VIPS that has options t create tiles, something like It will open much faster and take almost no memory if tiled (only what fits in a screen), a little more if stripped, because strips are the same width than the image. Can you give access to this TIFF ? I would like to try with an alternative Windows implementation (Wine on on MacOS), Vliv works fine there. I currently do not have access to a Windows machine with a compiler so it might take some time to fix in the code, if this proves to be necessary. |
The
|
Yes one strip of 30924 rows... Converting to tiled or strips with a usable rows/strip is my first advice. My best advice is to convert to a pyramidal tiled tiff, you can do that with vips You'll then experience what Vliv is meant for with instant loading/panning/unzooming even on modest configurations. I created Vliv for this specific type of tiff, and loading "bad" (non tiled, non stripped, non pyramidal) images is not really where it shines (fort example unzooming will only be possible if the image is pyramidal) Vliv can open instantly pyramidal tiled images that are 4200000x2000000 pixels (I have one that weights 1.5 Tb) |
ok, thank you very much for investigating this, much appreciated. I am surprised that I've hit a limit with vliv, that's a shame it can't load every image. Maybe you could catch the error and issue an error message which explains the problem better, so that users know exactly what's wrong (and maybe how to fix it). |
I got this error when loading a TIFF file
VlivCreateTrueColorDIBSection failed with error 87: The parameter is incorrect
The file seems to have been created by Photoshop. I realise that gdalinfo (below) reports an error, but IrfanView can display it ok (I don't have Photoshop to check).
The text was updated successfully, but these errors were encountered: