Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Per this thread, I discovered that ImageMagick's DDS coder (dds.c) does not have support for legacy DDS files.
Specifically, the DDS_PIXELFORMAT structure allows for three legacy flags that are not handled by the coder:
DDPF_ALPHA (0x2)
Used in some older DDS files for alpha channel only uncompressed data (dwRGBBitCount contains the alpha channel bitcount; dwABitMask contains valid data)
DDPF_YUV (0x200)
Used in some older DDS files for YUV uncompressed data (dwRGBBitCount contains the YUV bit count; dwRBitMask contains the Y mask, dwGBitMask contains the U mask, dwBBitMask contains the V mask)
DDPF_LUMINANCE (0x20000)
Used in some older DDS files for single channel color uncompressed data (dwRGBBitCount contains the luminance channel bit count; dwRBitMask contains the channel mask). Can be combined with DDPF_ALPHAPIXELS for a two channel DDS file.
Without support for these flags, ImageMagick fails to convert legacy DDS files.
Only the steelarrow_m.dds file is in the legacy format (DDPF_LUMINANCE) and it does not have the DDPF_ALPHA bit set. And the 'darkswirlsalpha.dds' file has an unsupported bit mask. I made some changes to my local development build to add support for both formats and I now get the following output: https://www.dropbox.com/sh/wxd03zif2ysn ... gMTba?dl=0.
Would you be willing to share a larger set of dds images? This will allow me to check the output and maybe add support for images that are unsupported at the moment. Feel free to send me a PM if you don't want to publicly share those images.
I need to become a member to download something from that site. I just wanted to check a couple more files. Can you provide me with a link to the 9 other files that failed for you in the other topic?