Can anyone provide some guidance?
Code: Select all
Convert c:\Temp\Source.jpg -units PixelsPerInch -density 96x96 -resize 150x150 -quality 100 -type TrueColor output.jpg
Code: Select all
Convert c:\Temp\Source.jpg -units PixelsPerInch -density 96x96 -resize 150x150 -quality 100 -type TrueColor output.jpg
Code: Select all
using (var image = new MagickImage(@"c:\Temp\Source.jpg"))
{
// -units PixelsPerInch -density 96x96
image.Density = new Density(96); // PixelsPerInch is the default.
// -resize 150x150
image.Resize(150, 150);
// -quality 100
image.Quality = 100;
// -type TrueColor
image.ColorType = ColorType.TrueColor;
image.Write("output.jpg");
}