diff --git a/Userland/Libraries/LibGfx/PNGWriter.cpp b/Userland/Libraries/LibGfx/PNGWriter.cpp index 26662774bf..7087091b3d 100644 --- a/Userland/Libraries/LibGfx/PNGWriter.cpp +++ b/Userland/Libraries/LibGfx/PNGWriter.cpp @@ -250,7 +250,7 @@ void PNGWriter::add_IDAT_chunk(Gfx::Bitmap const& bitmap) uncompressed_block_data.append(best_filter.buffer); } - auto maybe_zlib_buffer = Compress::ZlibCompressor::compress_all(uncompressed_block_data); + auto maybe_zlib_buffer = Compress::ZlibCompressor::compress_all(uncompressed_block_data, Compress::ZlibCompressionLevel::Best); if (!maybe_zlib_buffer.has_value()) { // FIXME: Handle errors. VERIFY_NOT_REACHED();