Jump to content

Levelling destroys image


Recommended Posts

I would like to use Paint.NET as an alternative editor for scanned documents. These documents are actually plans, both architectural and topographic. Especially the topographic plans can be 1. very old and 2. very big. A typical topo. plan is 30 cm high and between 3m and 15m. (yes, meters) long. It generates scanfiles of several megabytes, up to 500 MB when scanned to TIF. By default, all scans are done on 999 mm wide. (almost the complete width of the scanner) The scan has to be rotated (+/-90°), cropped, and leveled with the  'Layers>rotate' function, after wich it can be cleaned up with the 'Adjustments>Curves' tool.

This works fine on smaller scans.

But I have now a scan of + 4m (so,  actually not that big) where it goes wrong. Whatever sequence of the above actions I take, also when I save intermediate steps, when I try to level the image, using the 'Layers>Rotate' function, it destroys the image and leaves me with nothing than transparent pixels. Destruction takes place from the moment the windows appears.

What do I do? Can this be overcome?

Paint 4.0.21 - Win 10 Pro 1607 - 8 GB RAM - the cropped image is 4600x49000 point, about.

Link to comment
Share on other sites

Can you elaborate on what you mean by "destroys" ? 

 

Screenshots would help, and maybe even a video. If you could provide one of these images that cause this to happen, that would really help too.

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

"destroys" is explained in my OP: " it destroys the image and leaves me with nothing than transparent pixels". In other words, the whole image is transformed into one sheet/layer of transparent pixels. Saving it does not resurrect the image. Paint.NET doesn't crash, but the image is rendered useless, without information, like a clear sheet of glass.

 

Screendump: ok. There's just one: at the moment that I open the Rotate/Zoom, the image turns transparent. If at that moment, I press cancel, it returns. But the whole point is to rotate the image slightly.

 

Attaching the file is a bit difficult, 'cause it is 204 MB in TIF, and 7,6 MB as JPeG, even when 'cleaned up (and not levelled) it's still 5,9 MB. I'm open to suggestions.

Capture1.PNG

Link to comment
Share on other sites

If I create a 49000x4600 image and just open Rotate / Zoom, same thing happens, everything is transparent.

Playing around with roll or pan, nothing seems to happen.

Okay… it seems to happen at a specific resolution? Works fine at 46092, broken at 46093. @Rick Brewster

Edit: It also has something to do with vertical resolution.

46093x4787 works just fine but 46093x4788 doesn't.

Edited by Zagna
  • Upvote 2

sig.jpg.7f312affa740bae49243c4439bc4a244.jpg

Link to comment
Share on other sites

Glad you could reproduce the problem. ?

Points to a memory problem? Because Paint.NET wants to contain the whole image in-memory? ?

That's bad news, then. Because we have topographic plans that are longer than 10 m. ?

 

Link to comment
Share on other sites

1 minute ago, VDJ said:

Glad you could reproduce the problem. ?

Points to a memory problem? Because Paint.NET wants to contain the whole image in-memory? ?

That's bad news, then. Because we have topographic plans that are longer than 10 m. ?

 

Not a memory problem, just a good old bug, especially since it triggers with a +1 pixel change.

paint.net has had a bunch of bugs for really large dimensions, in the 30000+ variety once in a while and Rick fixes them as they come up.

sig.jpg.7f312affa740bae49243c4439bc4a244.jpg

Link to comment
Share on other sites

Yeah Paint.NET falls apart at those image sizes. I do try to fix things as they come up, but it's not the safest space to play in.

 

I'll file a bug and see if this can get a fix for the next release. Thanks for the bug report!

 

And thanks for the detailed repro information, @Zagna:)

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

You can't create a new image that is larger than 65,535 pixels in either dimension.


You can load images of that size but things won't work in a bunch of situations.

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...