xelepart Posted January 23, 2009 Posted January 23, 2009 Hey paint.net people. I'm interested in writing some image distorting plugins for personal use. I'm a capable programmer, I have already written the effect that I want using CodeLab. The problem is that I don't want an effect -- my distortions require image resizing and some pretty serious remapping of the source data. For instance, if I had a 10x10 source image, the pixel at 8,8 could well end up at 2,90 in a resulting image that is 100x100. So, one thing I need to be able to do is resize. I've written this logic in a couple languages now, but I have had some problems with memory. I'm not worried about speed, if it takes a week for this to run, I am okay with that. But I'm running this on images that are...well, my source image right now is a 500mb image, and the result is likely to be a couple gigs. So I either need Surface/Rectangle/image access code that deals with memory for me, or I need to work in some kind of tiled system... I was about to start trying to do this in GIMP when someone said Paint.NET is completely awesome, and it does seem so, so I've looked around the forums and tutorials, but everything seems to talk about effects, which are limited to a certain size/area/etc, so I figured I'd post: 1. Does Paint.NET support resizing effect-like-things via a customizable plugin system? If so, can you point me toward info on it? 2. Does Paint.NET provide an API for tiling, or very well managed (with respect to memory) image access classes such that I could load a couple gigs of imagery and not have it crash? Again, if so, can you either let me know how it does it, or point me toward info on it? I'm sorry if I missed posts about these things, I am often surprised at how bad I am at searching for things. Thanks in advance, -xelepart Quote
Simon Brown Posted January 23, 2009 Posted January 23, 2009 1. Does Paint.NET support resizing effect-like-things via a customizable plugin system? No 2. Does Paint.NET provide an API for tiling, or very well managed (with respect to memory) image access classes such that I could load a couple gigs of imagery and not have it crash? For loading an image or editing it? And I gather you are looking for this because you don't like the ones included with .NET? Quote
xelepart Posted January 23, 2009 Author Posted January 23, 2009 1. Sadness. 2. What do you mean by "the ones included"? I am asking about what is included... Did you even read my question? ... Well, I just tested something: "new image" "1200dpi" "36 inches by 12 inches" which says "2.3GB image" then says "not enough memory to create image." So the answer to my question is "no, paint.net doesn't provide a way to handle images that are larger than your memory." ah well, that makes it useless for my goals. thanks anyway, paint.net peoples! -x Quote
xelepart Posted January 23, 2009 Author Posted January 23, 2009 If anyone has any suggestions for what I should use if I want to write a custom effect type thing to run on 3GB+ images, please feel free to post... either a tool, or ...well, whatever. I'm just having no luck at all with this. -x Quote
Ed Harvey Posted January 23, 2009 Posted January 23, 2009 Paint.Net does not have a tiling system capable of dealing with images this big - I suspect that even GIMP will have difficulty... Depending on your needs and programming ability, VIPS might possibly fit the requirements. Quote
xelepart Posted January 23, 2009 Author Posted January 23, 2009 I was going to try GIMP next, thanks for the heads up. VIPS looks like it might work out, I'll read about it. Thanks. -x Quote
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.