Thread: PRS-500 RasterFarian 2.5 Beta
View Single Post
Old 09-05-2007, 04:30 PM   #167
cacapee
Connoisseur
cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.cacapee is no ebook tyro.
 
Posts: 77
Karma: 1393
Join Date: Aug 2007
Location: Santa Monica
Device: prs-500
Yeah, I looked into the rasterfarian code (old and new) when writing my tool. As far as image processing goes, I'm using CImg (simply because it is easy to integrate). The process goes like this

generate images at 300 dpi
dilate (using CImg)
resize (using Cimg's cubic interpolation)
convert to gif using (libgd)

I believe you are correct in that things can be improved. I was looking at using the lanczos filter to do resizing. Also remapping to the 4-color palette as opposed to using whatever libgd does may be a better thing to do. I'll also add sharpen.

I want to get a stable code base before releasing the source. If you are interested I can add a output-debug-image option that will save out bmps at each step of processing. This is probably more useful to you too.
cacapee is offline