This project has moved. For the latest updates, please go here.

DDS format

Nov 5, 2013 at 2:19 PM

is it possible to save an dds file with different compression ({dxt1, dxt5, none})?

I can't find informations about the compression or the mipmaps.
Nov 5, 2013 at 2:47 PM
You can find information about the available options here: Scroll down till you find DDS. -define is the same as the SetOption method of MagickImage:
using (MagickImage image = new MagickImage("input.png"))
  image.SetOption(MagickFormat.Dds, "compression", "dxt1");
Nov 5, 2013 at 3:03 PM
Thank you,

i had read this but i don't know about the -define and SetOption thing.
Nov 5, 2013 at 9:21 PM
I should probably rename the SetOption method to SetDefine to avoid confusion in the future.
Nov 7, 2013 at 9:32 AM
Yes, think this would be a great idea.
Maybe you can add an example to the documentation.
Nov 7, 2013 at 9:45 AM
Edited Nov 7, 2013 at 11:31 AM
Okay, I will make the change and add a new page to the documentation that contains the example above.

You can find the page here:
Nov 7, 2013 at 11:36 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.