Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: TotalColors changes after Resize

$
0
0
Hi,

I assume this is a bug.... I have an AI file that has 59 Colors, after a Resize this will increase to 33702
var settings = new MagickReadSettings {Density = new PointD(150)};

                using (var image = new MagickImage(FileName, settings)) {
                    var totalColors = image.TotalColors;
                    image.Resize(1024, 1024);
                    var totalColors2 = image.TotalColors;
                    image.Format = MagickFormat.Jpg;
                    filePath = ....
                    image.Write(filePath);
                }

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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