EXR to DDS?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
BobSmith
Posts: 2
Joined: 2020-02-18T03:26:57-07:00
Authentication code: 1152

EXR to DDS?

Post by BobSmith »

Hi,

I was wondering if it was possible to convert an EXR file (Which contains HDR color) to a DDS file (Which needs to be DX10 version - R16G16B16A16Float)?
Is that possible? Without dropping down to sRGB at any stage and maintaining the full wide color gamut.

Thanks alot guys!
Last edited by BobSmith on 2020-02-18T07:42:03-07:00, edited 1 time in total.

snibgo
Posts: 12910
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: EXR to DDS?

Post by snibgo »

I suppose your DDS "R16G16B16A16" is an integer format. EXR HDR images are high dynamic range, which means some values are greater than the usual QuantumRange (65535 or whatever). Those values can't be put in an integer file format.

Of course, the values can be reduced so they are no longer greater than QuantumRange.
snibgo's IM pages: im.snibgo.com

BobSmith
Posts: 2
Joined: 2020-02-18T03:26:57-07:00
Authentication code: 1152

Re: EXR to DDS?

Post by BobSmith »

Hi, yeah they need to be float - I have put that now..

snibgo
Posts: 12910
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: EXR to DDS?

Post by snibgo »

Sorry, I know nothing about DDS formats. See the DDS entry in https://www.imagemagick.org/script/formats.php . I suspect DDS is integer-only.
snibgo's IM pages: im.snibgo.com

Post Reply