Quantcast
Viewing all articles
Browse latest Browse all 3693

New Post: MagickImage Extent adds black line at top of image

I am doing the following to resize an image. When doing this, it adds a black like at the top of the image, even though the fill color is white.
        MagickImage from = new MagickImage(strTempFile);
        from.Extent(MaxWidth, MaxHeight, Gravity.Center, new MagickColor(Color.White));
        if (strNewExt.ToLower() == ".tiff"
        || strNewExt.ToLower() == ".tif")
        {
            from.RemoveProfile("tiff:37724");
        }
        from.Write(strFileName);
        from.Dispose();
https://www.boomerangdm.com/Before.tif
https://www.boomerangdm.com/After.tif

Viewing all articles
Browse latest Browse all 3693

Trending Articles