Re-enable squeezed delta palette (#4930)

* Restore squeezed delta palette

* Underscore
This commit is contained in:
Jonathan Brown authored and GitHub committed 2026-08-21 16:16:40 +00:00
1 parent 6f00b1cf2b
commit aea3a06e28
1 file changed
+4 -2
+4 -2
View File
@@ -893,8 +893,10 @@ Status ModularFrameEncoder::ComputeEncodingData(
(do_color && metadata.bit_depth.bits_per_sample > 8))) {
channel_colors_percent = cparams_.channel_colors_pre_transform_percent;
}
if (!groupwise &&
(!(cparams_.responsive && cparams_.ModularPartIsLossless()))) {
// Global palette causes bad progressive loading due to interpolation
// but lossy palette is still required for JXL art.
if (!groupwise && (cparams_.lossy_palette ||
!(cparams_.responsive && cparams_.ModularPartIsLossless()))) {
JXL_RETURN_IF_ERROR(try_palettes(gi, max_bitdepth, maxval, cparams_,
channel_colors_percent, pool));
}