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
matt1008
Posts: 6
Joined: 2016-09-23T10:53:54-07:00
Authentication code: 1151

Really large images...

Post by matt1008 »

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
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Really large images...

Post by magick »

ImageMagick can read, process, or write mega-, giga-, or tera-pixel image sizes. See https://imagemagick.org/script/architec ... 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
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Really large images...

Post by dlemstra »

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 https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply