Re: [Boston.pm] Re: Scripted image manipulation

2003-06-19 Thread Anthony R. J. Ball
hehe... you could try just doing wholesale changes on a button tweaking the algorithm each time until it looked like you want :) You could also maybe do a nearest neighbor for one or two pixels in every direction, to see if you are near a pure blue. But the easiest would probably be to

Re: [Boston.pm] Re: Scripted image manipulation

2003-06-19 Thread Sherm Pendley
On Wednesday, June 18, 2003, at 09:35 PM, John Sequeira wrote: Thanks everyone for your suggestions. Using one of the libraries recommended, I believe I can walk the directory, load each gif image and then loop through each pixel, changing all solid colors from e.g. blue (0,0,255) to green

Re: [Boston.pm] Re: Scripted image manipulation

2003-06-19 Thread John Sequeira
Did you look in the Perl Graphics book yet? I did check out the perl graphics book examples, and none of them looked relevant, but... I'm going to sign up for Safari and read through it. Looks like I get two weeks free, so I can do the book due diligence pretty quickly. Thanks

Re: [Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread Chris Devers
On Wed, 18 Jun 2003, John Sequeira wrote: > Is there a way to figure out what the yellowish or blueish antialiasing > pixels should map to in the new graphic? > > Would I have to dig down deep into understanding antialiasing > algorithms, or is there a simpler way to use something like a color >

[Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread John Sequeira
Anthony R. J. Ball wrote: As for changing image colors, you could do that with imlib2 as well... though maybe pixel by pixel. The probalem you may run into is if they have anti-aliased text, which will make wholesale color-swapping difficult. Thanks everyone for your suggestions. Using one

[Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread Anthony R. J. Ball
Well... I have scripts set up to do button/tab etc generation of my company's web graphics using all perl. I create the images using Imlib2 and xml templates. I really doubt I could share the code with you, but I could probably help you along, and even give you my slightly enhanced version