diff --git a/CHANGELOG.md b/CHANGELOG.md index 73f77691e..e64aec429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ For a complete change history, see the git log. ## Future +- Added support for setting zlib `Z_FIXED` strategy with format string: `png:z=fixed` + - Fixed handling of transparency level option in Octree-based PNG encoding (#1556) - Faster rendering of rasters by reducing memory allocation of temporary buffers (#1516) diff --git a/src/image_util.cpp b/src/image_util.cpp index 623cf267d..53824e462 100644 --- a/src/image_util.cpp +++ b/src/image_util.cpp @@ -198,6 +198,10 @@ void handle_png_options(std::string const& type, { *strategy = Z_RLE; } + else if (s == "fixed") + { + *strategy = Z_FIXED; + } else { throw ImageWriterException("invalid compression strategy parameter: " + s);