JosP Posted August 3, 2009 Posted August 3, 2009 Hi, I've tested Paint.NET with loading several PNG files as layers on top of each other. The PNG's are partially transparent and together form a geographical map. Doing this I get the message that there isn't enough memory to complete the operation. But it's less than 3 Mb of data and no more than 3 or 4 files. I suspect an OutOfMemoryException is thrown from somewhere in System.Windows.Drawing namespace. Yes, I'm developing an PNG-viewer application using the same technology as Paint.NET and get the same error :-(. So I thought to check and see if Paint.NET could handle this operation and maybe I was doing something wrong. But apparently you are facing the same problem? Regards, JosP Quote
david.atwell Posted August 3, 2009 Posted August 3, 2009 Did you read the thread that's sticky'd to this forum about out-of-memory problems? Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him.
JosP Posted August 3, 2009 Author Posted August 3, 2009 I have now, but the files I'm loading are really quite small and their is about 2GB of free RAM on my system. I'm not sure I'm loading the PNG's in the proper way though. I first open the bottom one, and then use the import from file menu option from the Layers menu. Is that the way to do it? This is the point where I get the error "Not enough memory to load the image". Quote
Rick Brewster Posted August 3, 2009 Posted August 3, 2009 The size on disk does not match the memory usage. It doesn't matter if it's "3mb", or if you have 2GB or 8GB or 1GB or zero. What matters are the pixel dimensions and availability of virtual address space. The amount of physical memory is actually almost irrelevant. It is not lying to you! Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
david.atwell Posted August 4, 2009 Posted August 4, 2009 I have now, but the files I'm loading are really quite small and their is about 2GB of free RAM on my system.I'm not sure I'm loading the PNG's in the proper way though. I first open the bottom one, and then use the import from file menu option from the Layers menu. Is that the way to do it? This is the point where I get the error "Not enough memory to load the image". If that's your answer, you obviously haven't. Read it again. What is your image's pixel size? Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him.
david.atwell Posted August 5, 2009 Posted August 5, 2009 Well, there's your problem. 7Kx7K is huge. Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.