Really large images...

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
Posts: 6
Joined: 2016-09-23T10:53:54-07:00
Authentication code: 1151

Really large images...

Post by matt1008 » 2019-01-17T12:46:19-07:00

I have an image that is 24,000 x 48,000 that requires 4GB when opened in my C#/64 application. The image creation fails because C# has a 2GB object limit. I'm looking into a work-around solution. Possible running a command line app to break up the image into smaller chunks. Has anyone use ImageMagick command line with a massive image? My images are coming from Drones. Thanks!

User avatar
Site Admin
Posts: 10907
Joined: 2003-05-31T11:32:55-07:00

Re: Really large images...

Post by magick » 2019-01-18T05:13:21-07:00

ImageMagick can read, process, or write mega-, giga-, or tera-pixel image sizes. See ... tera-pixel. That of course does not mean you could then host the entire image in memory with Magick.NET. To avoid exceeding memory limits, you could downsize the image by resizing. You could also cache the image on disk, memory-map a portion of the image to display, and scroll the image up/down/left/right to view it in its entirety.

User avatar
Posts: 1532
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789

Re: Really large images...

Post by dlemstra » 2019-01-18T05:27:58-07:00

Could you open an issue on with a code sample Github and share an image that I can use to reproduce your issue?
.NET + ImageMagick = Magick.NET, @MagickNET, Donate

Post Reply