DDS - unexpected end-of-file

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Bighead
Posts: 11
Joined: 2015-03-09T23:45:55-07:00
Authentication code: 6789

DDS - unexpected end-of-file

Post by Bighead »

For some reason there are DDS files that give the below error message when trying to convert to PNG (or any format):
convert.exe: unexpected end-of-file 'tex1_64x64_f6ba877454fa8f67_14.dds': No such file or directory @ error/dds.c/SkipRGBMipmaps/2407.

The error also pops up if using certain command with "identify.exe", so it's not limited to just converting. Identify can get the width and height okay, but testing for %[opaque] fails and throws out the error.

The file in question is here, and I can provide more samples if needed:
http://www.mediafire.com/download/ja8wa ... f67_14.dds

Using a simple image converter such as this has no issues converting the file to PNG.
http://www.ddsconverter.com/

And the image is view-able and works fine when loaded into games. Is there any way around this error and force ImageMagick to convert it?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: DDS - unexpected end-of-file

Post by dlemstra »

It looks like this type of DDS file is not supported at the moment. When I ignore the error I get a corrupted image.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply