Jump to content

Can't save very big image PNG image PaintDotNet.Imaging.ImageSizeOutOfRangeException


Recommended Posts

20 minutes ago, MonsterMMORPG said:

I have 64 GB RAM and I want to edit 383652 x 3143 size having PNG image

 

@MonsterMMORPG that is a huge file.  Please read this thread:

 

 

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to comment
Share on other sites

3 hours ago, Pixey said:

 

@MonsterMMORPG that is a huge file.  Please read this thread:

 

 

 

 

I did read it and don't see solution

 

By the way just because of this problem I have purchased Photoshop

 

and guess what? Photoshop has 300k pixel dimension limitation

 

So I had to split images into half dimension. I used pil library and then Photoshop was able to open them

 

After that I edited in Photoshop and saved. So photoshop was able to open edit and save 254418 x 4188 pixels image

 

Then I used Python again to merge into full image

 

So Paint .net and gimp was able to open images. However I wasn't able to save on those 2.

 

Photoshop wasn't able to open full image but it was able to edit and save 254k x 4k resolution 

 

I am doing all on Windows 10

Link to comment
Share on other sites

6 hours ago, MonsterMMORPG said:

I did read it and don't see solution


Along the lines of the workaround suggested in https://forums.getpaint.net/topic/124392-error-when-saving-large-image-over-65535-pixels-width-or-height-to-png/

I would:

1. Open your 383652 x 3143 PNG image in paint.net for editing

 

2. Save to AVIF
    See https://forums.getpaint.net/topic/116233-avif-filetype-01-11-2024/ for the most recent version of the plugin

 

3. Use pillow (the up-to-date fork of PIL) with the pillow-avif-plugin to convert the file to PNG


Out of interest, what is the reason that you have to have an image that is 383652 pixels wide?

 

 

Link to comment
Share on other sites

9 hours ago, Tactilis said:

Open your 383652 x 3143 PNG image in paint.net for editing


Note that paint.net does have a limit of 262144, i.e. 2^18, pixels in width and/or height when creating a New image or Resizing an existing one.

 

Although you can open larger images, there may be some odd behaviour when using the editing tools. For example, I found that a selected area that I filled using the Paint Bucket was not displayed in the newly applied colour until I forced a refresh by zooming in then out.

 

 

Link to comment
Share on other sites

7 hours ago, Tactilis said:

Out of interest, what is the reason that you have to have an image that is 383652 pixels wide?

 

I'm curious about this too -- this type of information is very useful for me!

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

  • 2 weeks later...

Well that image immediately caught a different bug -- you can't run a GPU effect (or adjustment) on that image, there's an internal overflow that prevents it. I've fixed it for the v5.1 release.

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...