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

New Post: Large Image Resize failing. Leaving bottom grey.

$
0
0
Using ImageMagick.Net-AnyCPU Version 7

When I'm trying to resize a large image something 3744 x 5616 for example 300dpi and 24 bit depth with the following code I get a resized image with only 3/4 of the image visible and the rest grey sometimes with a green line separating the two areas.

Anyone have any ideas. Thanks

using (fileStream)
                {
                    MagickImage img = new MagickImage(fileStream);
                    //320x240 for example.
                    string resolution = width + "x" + height;
                    img.Resize(new MagickGeometry(resolution)); 
                    img.RePage();

                    using (var memStream = new MemoryStream())
                    {
                        img.Write(memStream);
                        memStream.Position = 0;
                        FileAccessBL.Set(file, memStream, resolution);
                    }
                }

Viewing all articles
Browse latest Browse all 3693

Trending Articles