I'm working on a Image Gallery script now.

I downloaded a few days ago an Automatic Wall Paper changer. this program somehow selects the best matching background color for every picture (assuming you want your desktop picture centered, rather than streched to fit all the screen).

I saw a while ago a PHP script that will randomly pick quotes and create a dynamic image, while picking random font color and background color. This script also had a function that will pick "matching colors" for the font and background too.

So, I basically what I would like to do is to add this feature if possible in my Image Gallery script.

Does any1 know if this is possible ? My PHP knowledge is not very advanced, so I would appreciate any links to a tutorial with this information... but a PHP Class wont help me cause I still have trouble understanding them.

Thanks in advance,

Pablo F.S.

    It's certainly possible, but very hard to guess. What would seem logical to me is take all the surrounding pixels (i.e. a 5x5 row around edge) and everage the colors.
    This would be very easy to do using gd, but would be very slow.

      Write a Reply...