@@ -376,13 +376,14 @@ FI_ENUM(FREE_IMAGE_FORMAT) {
376376 FIF_GIF = 3 ,
377377 FIF_TARGA = 4 ,
378378 FIF_WEBP = 5 ,
379- FIF_JXR = 6 ,
380- FIF_TIFF = 7 ,
381- FIF_PSD = 8 ,
382- FIF_ICO = 9 ,
383- FIF_DDS = 10 ,
384- FIF_HDR = 11 ,
385- FIF_PNM = 12
379+ FIF_JXL = 6 ,
380+ FIF_JXR = 7 ,
381+ FIF_TIFF = 8 ,
382+ FIF_PSD = 9 ,
383+ FIF_ICO = 10 ,
384+ FIF_DDS = 11 ,
385+ FIF_HDR = 12 ,
386+ FIF_PNM = 13
386387};
387388
388389/** Image type used in FreeImage.
@@ -593,8 +594,8 @@ typedef void (DLL_CALLCONV *FI_InitProc)(Plugin *plugin, int format_id);
593594#define PNG_IGNOREGAMMA 1 // loading: avoid gamma correction
594595#define PNG_INTERLACED 0x0200 // save using Adam7 interlacing (use | to combine with other save flags)
595596#define PNM_DEFAULT 0
596- #define PNM_SAVE_RAW 0 //! if set the writer saves in RAW format (i.e. P4, P5 or P6)
597- #define PNM_SAVE_ASCII 1 //! if set the writer saves in ASCII format (i.e. P1, P2 or P3)
597+ #define PNM_SAVE_RAW 0 //! if set the writer saves in RAW format (i.e. P4, P5 or P6)
598+ #define PNM_SAVE_ASCII 1 //! if set the writer saves in ASCII format (i.e. P1, P2 or P3)
598599#define PSD_DEFAULT 0
599600#define PSD_NONE 0x0100 // save without any compression
600601#define PSD_RLE 0x0200 // save using RLE compression
@@ -617,8 +618,14 @@ typedef void (DLL_CALLCONV *FI_InitProc)(Plugin *plugin, int format_id);
617618#define JXR_PROGRESSIVE 0x4000 // save as a progressive-JXR (use | to combine with other save flags)
618619#define WEBP_DEFAULT 0 // save with quality 75 & 4:2:0
619620#define WEBP_LOSSLESS 100 // save lossless vp8 photo
620- #define WEBP_SHARPYUV 0x0100 // use sharper (and slower) RGB->YUV conversion for vp8 photo
621+ #define WEBP_SHARPYUV 0x0100 // use sharper (and slower) RGB->YUV conversion for vp8 photo
621622#define DDS_DEFAULT 0
623+ #define JXL_DEFAULT 0 // save with quality 90, use 12bit depth for hdr image
624+ #define JXL_LOSSLESS 100 // save lossless jpeg-xl
625+ #define JXL_BITDEPTH_10 0x0100 // save jpeg-xl with 10bit depth for hdr image
626+ #define JXL_BITDEPTH_12 0x0200 // save jpeg-xl with 12bit depth for hdr image
627+ #define JXL_BITDEPTH_16 0x0400 // save jpeg-xl with 16bit depth for hdr image
628+ #define JXL_BITDEPTH_32 0x0800 // save jpeg-xl with 32bit depth for hdr image
622629
623630// Background filling options ---------------------------------------------------------
624631// Constants used in FreeImage_FillBackground and FreeImage_EnlargeCanvas
0 commit comments