Skip to content

Commit

Permalink
Faster PNG compression (libjxl#3819)
Browse files Browse the repository at this point in the history
* Lower PNG compression

* Try level 1

(cherry picked from commit 0185fcd)
  • Loading branch information
jonnyawsom3 authored and mo271 committed Nov 26, 2024
1 parent 4df1e9e commit aaacb01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/extras/enc/apng.cc
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ Status APNGEncoder::EncodePackedPixelFileToAPNG(

info_ptr = png_create_info_struct(png_ptr);
if (!info_ptr) return JXL_FAILURE("Could not init png info struct");
png_set_compression_level(png_ptr, 1);

png_set_write_fn(png_ptr, bytes, PngWrite, nullptr);
png_set_flush(png_ptr, 0);
Expand Down

0 comments on commit aaacb01

Please sign in to comment.