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

New Post: Convert 32bit PNG to 8bit/128colors PNG

$
0
0
hi all,

orig png: 32bit/96dpi
target png: 8bit/128colors/72dpi

my code so far:
using ImageMagick;
...
        using (MagickImage image = new MagickImage(origPATH))
        {
            image.Format = MagickFormat.Png;
            image.SetDefine(MagickFormat.Png, "colors", "128");
            image.SetDefine(MagickFormat.Png, "depth", "8");
            image.SetDefine(MagickFormat.Png, "resample", "72");

            image.Write(targetPATH);
        }
target png is written, but same as orig (32bit/96dpi)

please help

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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