Inconsistent PNG file size when manipulating the MagickImage.Quality #1589
-
Hi all! I'm working on a small app where the user can control certain aspects of their image, such as format (Jpeg/Png), Quality (1-100), Color Mode (RGB, GrayScale) and Bit Depth (2-bit, 4-bit and 8-bit options). The user feeds a Bitmap file, and based on the provided values mentioned above I write the changes to a memory stream print the array length it to inform the user about the estimated size of the output image:
I noticed that this code using
However, with Png, it behaves strangely:
I'm looking for options for decreasing the size of Png files, and through Quality does not seem to be correct way. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The quality works different for PNG files. You can find more information here: https://www.imagemagick.org/script/command-line-options.php#quality. |
Beta Was this translation helpful? Give feedback.
The quality works different for PNG files. You can find more information here: https://www.imagemagick.org/script/command-line-options.php#quality.