Magick.NET icon indicating copy to clipboard operation
Magick.NET copied to clipboard

DDS multipage (cubemap) save broken

Open AN3Orik opened this issue 1 year ago • 3 comments

Magick.NET version

Magick.NET-Q16-HDRI-OpenMP-x64 13.5.0

Environment (Operating system, version and so on)

Windows 10

Description

Opening and saving multipage DDS (cubemap) producing one-page image

Steps to Reproduce

        using (MagickImageCollection image = new MagickImageCollection("test.dds")) // Cubemap with six pages
        {
            image.Write("test_2.dds"); // Plain dds with one (first) image
        }

test.zip

AN3Orik avatar Feb 02 '24 22:02 AN3Orik

On a mobile device so I cannot test this. But you will probably need to use the DdsWriteDefines.

dlemstra avatar Feb 03 '24 06:02 dlemstra

DdsWriteDefines got nothing about multipage, only: ClusterFit/Compression/FastMipmaps/Mipmaps/MipmapsFromCollection/Raw/WeightByAlpha properties.

AN3Orik avatar Feb 03 '24 10:02 AN3Orik

It looks like @ImageMagick currently has no support for writing a cubemap.

dlemstra avatar Feb 07 '24 12:02 dlemstra