Jump to content

Error saving large PNG images?


Recommended Posts

I would expect this has been covered previously but I couldn't find anything with a quick search. If I try to save a large image over around 3000x3000 pixels as a .PNG file then it gives me an error if I select 8 bit (or leave it on auto detect), but works fine with 24/32 bit. It will do this with a blank canvas or a simple drawing, but if I paste a portion of an image with lots of colors on the canvas before saving, then suddenly it will work (even at 8 bit).

I am running Windows 7 64-bit with 4 GB RAM.

Link to comment
Share on other sites

In the save configuration box it says: "Preview, file size: (error)", then if you hit save anyway it says "There was an unspecified error while saving the file." Then it leaves an empty .PNG file where you tried to save it.

Very descriptive, I know.

Link to comment
Share on other sites

Ok well that was easier to fix than I thought :lol: ! ... just had to switch to using 64-bit accumulators instead of 32-bit ones. Now the error can still happen, but you'd need an image about 50,000x larger. I'm ok with that, especially since the hard limit is 65,535 x 65,535 pixels. I tested on a 16,000 x 16,000 image and it worked fine (it was a blank/white image like described above).

Attached is a zip with a new PaintDotNet.Data.dll and .pdb file. Unzip to where you installed Paint.NET (usually C:\Program Files\Paint.NET). Be sure to say yes/ok/confirm when it asks to overwrite the existing files.

PDN.Data.3.55.QFE.33944.zip

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

I've also filed a bug, for v4.0, to make that "(error)" a lot better. Like a + button to give you the exception details or something. I've been meaning to do that for awhile but I always have had other things take priority or attention.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 3 weeks later...

Hi : I just ran into the same exact problem trying to save a .psd file. It is about 21megs and has 81 layers. It takes awhile to open it but it eventually opens ok and is fully workable but when I go to save it I get the same result as above.

Great program by the way!

Paul

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...