This is an additional component to the core image library that adds support for the DDS format.
Library is available as composer repository and can be installed using the following command in a root of your project.
composer require bic-engine/image-dds
$factory = new \Bic\Image\Factory();
$factory->extend(new \Bic\Image\DDS\DDSDecoder());
// After adding the decoder, you can use the *.dds reading
$images = $factory->fromPathname('path/to/image.dds');
FourCC | DXGI Format | Availability |
---|---|---|
DXT1 | ~ | ✓ |
DXT2 | ~ | ✓ |
DXT3 | ~ | ✓ |
DXT4 | ~ | ✓ |
DXT5 | ~ | ✓ |
DX10 | B8G8R8A8_*** | ✓ |
DX10 | R8G8B8A8_*** | ✓ |
DX10 | BC1_*** | ✓ |
DX10 | BC2_*** | ✓ |
DX10 | BC3_*** | ✓ |
DX10 | BC6H_*** | ✓ |
DX10 | BC7_*** | ✓ |
DX10 | other | |
ATI1 | ~ | |
ATI2 | ~ | |
BC4U | ~ | |
BC4S | ~ | |
BC5U | ~ | |
BC5S | ~ | |
RGBG | ~ | |
GRGB | ~ | |
YUY2 | ~ |