dlemstra / Magick.NET

The .NET library for ImageMagick
Apache License 2.0
3.44k stars 413 forks source link

DDS multipage (cubemap) save broken #1539

Open AN3Orik opened 8 months ago

AN3Orik commented 8 months ago

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

dlemstra commented 8 months ago

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

AN3Orik commented 8 months ago

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

dlemstra commented 8 months ago

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