-
-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes when loading large (32k) image. #996
Comments
I have exactly the same problem but in another environment. GNU/Linux, 32GB RAM, .Net Core v3.0.
|
It's a duplicate issue indeed, therefore it will be closed so we can keep our issue set clean. But first, a question! |
I have big continuous pictures in jpeg-format from customer with typical sizes 500-1000 MB and dimensions 30000x60000px. My task is to process them (read jpeg, random read pixels, resize, get random rect, etc) for machine learning. Yes, I can split them manually in blocks by GIMP and then process through pipe of batches, but it would be great to do this through .net-code. I've tried work with such big pictures through several .net-libraries:
but none of them can process big pictures on GNU/Linux, faulting in memory allocation or even arithmetic overflow. Also, I can't use System.Drowing, because it hasn't Linux-support. |
Have you tried Magick.NET? That library will swap to disk when necessary and should work in your situation. |
It works! Thanks! |
@supcry Alternatively, you can try NetVips, the C# binding for libvips. This is a streaming image processing library, so rather than manipulating huge objects in memory, it builds pipelines and then runs them in parallel, streaming images in a series of small regions. It has an |
Let's please focus on removing constraints within this library. |
Closing as a duplicate of #805 |
Prerequisites
DEBUG
andRELEASE
modeDescription
When a image is very large this exception gets thrown:
Steps to Reproduce
Load an image with 32786x16384 pixels
System Configuration
ImageSharp version: beta 7
Other ImageSharp packages and versions: core beta 8
Environment (Operating system, version and so on):
Win10 1903
48GB RAM
i7-6700k
.NET Framework version:
4.7.2
The text was updated successfully, but these errors were encountered: