Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: png after resize() totalcolor will increase [1371]

$
0
0
png after resize() totalcolor will increase

png8
image.totalcolor=32
image.ColorType = ColorType.Palette;

and I after resize(980,0)

it change to
image.totalcolor=213
image.ColorType = ColorType.TrueColor;

This should be a bug
Comments: Thanks for reply~! yes, I used Quantize() after resize(). Very strange, I use photoshop, png8 filesize < jpg filesize same setting, and magick.net png8 filesize > jpg filesize Can you help me find the reason? The original file is png8 32 colors. jpg image.SetDefine(MagickFormat.Jpeg, "sampling-factor", "4:2:0"); image.Interlace = Interlace.Plane; image.Quality = 70; png image.Quantize(new QuantizeSettings() { Colors = 16 }); image.ColorType = ColorType.Palette; //image.SetDefine(MagickFormat.Png, "compression-filter", "2"); image.SetDefine(MagickFormat.Png, "compression-level", "9"); image.SetDefine(MagickFormat.Png, "compression-strategy", "5");

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>