Fellow NodeBoxers,
For several months now I've been working on a general purpose image node and am getting close.
I plan on sharing it, but would like to know who would want to use it. If you would like to incorporate images (PNG, JPG, BMP, TIFF) into your NodeBox projects, please hit the reply button, say "ME!", and maybe also say what you might want to use it for. The more responses I get, the more motivated I will be to get this thing out the door ASAP.
Some Background
A way of incorporating images is probably the single most requested NodeBox feature. NodeBox is and will remain a pure vector application - not much I can do about that. But by using some Python code and a NodeBox subnetwork, I can read in a file and output a "pixel group" - a group of square rectangles each with a position, a pixel size, and a fill color. The output will appear in your drawing area as an actual image and you can feed it into all the usual nodes like any other group of paths.
The challenge is that even a small or low-res image has a LOT of pixels. My experience has been that Nodebox can only handle pixel groups of about 100,000 rects. Much higher and it becomes painfully sluggish and starts getting memory errors. To protect you from crashing Nodebox I limit output to 100,000 pixels.
100,000 pixels is a lot or rectangles, but only .1 megapixels, enough to display a 400 x 250 pixel photo - about the size of a post-it note on a typical laptop screen. Fortunately, it is possible to get surprisingly good results by either down-sampling (capturing, say, every third pixel), or by using a mask to capture a portion of the image. This is what my node does.
For the mask you can feed in any closed shape (a rect, a circle, a star, a text path) OR a series of points resampled along one or more paths (concentric circles, lines, a spiral). Once you've captured a pixel group you can adjust it in many ways, including turning the squares into dots of different sizes based on the luma value, applying color filters, etc.
These are things I am starting to play with. You could also use images as a reference for placing vector elements, use the pixels as a source of perlin-like noise, take pixel slices through individual frames of a movie and arrange them into color strips - the possibilities are endless!
So if this sounds interesting, please hit the Reply button and type "I'm in!" Questions and suggestions always welcome.
John