diff --git a/autotests/write/format/jxr/Format_RGBA16FPx4_Premultiplied.jxr b/autotests/write/format/jxr/Format_RGBA16FPx4_Premultiplied.jxr index 7fc8063..308b100 100644 Binary files a/autotests/write/format/jxr/Format_RGBA16FPx4_Premultiplied.jxr and b/autotests/write/format/jxr/Format_RGBA16FPx4_Premultiplied.jxr differ diff --git a/src/imageformats/jxr.cpp b/src/imageformats/jxr.cpp index 9367b4f..13264e4 100644 --- a/src/imageformats/jxr.cpp +++ b/src/imageformats/jxr.cpp @@ -457,7 +457,7 @@ public: << QImage::Format_Mono; // clang-format on - // To avoid complex code, I will save only inetger formats. + // To avoid complex code, I will save only integer formats. auto qi = source; if (qi.format() == QImage::Format_MonoLSB) { qi = qi.convertToFormat(QImage::Format_Mono); @@ -468,6 +468,11 @@ public: else qi = qi.convertToFormat(QImage::Format_RGBA8888); } +#ifndef JXR_DENY_FLOAT_IMAGE + if (qi.format() == QImage::Format_RGBA16FPx4_Premultiplied) { + qi = qi.convertToFormat(QImage::Format_RGBA16FPx4); + } +#endif // JXR_DENY_FLOAT_IMAGE // generic if (!valid.contains(qi.format())) {