VDJ Posted June 12, 2018 Share Posted June 12, 2018 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. Quote Link to comment Share on other sites More sharing options...
Pixey Posted June 12, 2018 Share Posted June 12, 2018 @VDJ Welcome to the forum I'm wondering if this Plugin may be of use, instead of the Layers/Rotate: Quote 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 More sharing options...
Rick Brewster Posted June 12, 2018 Share Posted June 12, 2018 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
VDJ Posted June 13, 2018 Author Share Posted June 13, 2018 "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. Quote Link to comment Share on other sites More sharing options...
Zagna Posted June 13, 2018 Share Posted June 13, 2018 (edited) 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 June 13, 2018 by Zagna 2 Quote Link to comment Share on other sites More sharing options...
VDJ Posted June 13, 2018 Author Share Posted June 13, 2018 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. ? Quote Link to comment Share on other sites More sharing options...
Zagna Posted June 13, 2018 Share Posted June 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 13, 2018 Share Posted June 13, 2018 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 Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
VDJ Posted June 14, 2018 Author Share Posted June 14, 2018 Thank you for going further with this. FYI I have identified our largest scan. It's 272145 x 4639, a monochrome scan @ 400 DPI of a plan over 17 meters long. ? Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 15, 2018 Share Posted June 15, 2018 Paint.NET won't work very well, or at all, with an image that is 272K pixels wide. It's really limited to 65,535 pixels in either dimension. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Reptillian Posted June 16, 2018 Share Posted June 16, 2018 (edited) So, dimensions are apparently 16-bit restricted? Am I correct? That means maximum dimension are 65,335 x 65335 pixels. Edited June 16, 2018 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Roly Poly Goblinoli Posted June 16, 2018 Share Posted June 16, 2018 I'd imagine. It probably falls out of scope once you're working with an image larger than 65k pixels in any direction; I don't know what utility you might acquire from such a large image. Quote Link to comment Share on other sites More sharing options...
VDJ Posted June 20, 2018 Author Share Posted June 20, 2018 Hmm, even when the bug is corrected, at 65535 pixels, at 300 dpi, that's: 65535 * 25,4/ 300 = 5548 mm or a bit over 5,5 meters. ☹️ Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 20, 2018 Share Posted June 20, 2018 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. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
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.