Skip to content

Commit

Permalink
Add support for missing user ability to set Z_FIXED zlib strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Nov 4, 2012
1 parent 56f3874 commit f9fa9c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/image_util.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f9fa9c2

Please sign in to comment.