[nycphp-talk] photos.com color search
Mark Armendariz
nyphp at enobrev.com
Wed Jan 5 04:43:03 EST 2005
Well, upon a quick somewhat inebriated research session, I found that gd2
has the capability to find the color of a pixel
(http://us2.php.net/manual/en/function.imagecolorat.php), which tells me
that you could probably write something in php to 'parse' an image for the
majority color with gd2. Then again I tend to avoid gd due to how slow it
can be with php, but if gd does it, I'd imagine the functionality being
available with imagemagick and/or pnm. So, I suppose it's possible with php,
although probably slower than an 'outside' solution.
Mark
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of Sajith A
> Sent: Wednesday, January 05, 2005 12:10 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] photos.com color search
>
> I recently came accross a new feature added by photos.com. They allows
> the users to search images based on the color.
>
> http://www.photos.com/en/search/index?srch=Search&cp_color=%23b02020%2B
>
> They are using linux server and i hope it is done in php. Anybody has
> any idea how this is implemented. I don't think they are accessing the
> image files each and every time - they might be storing the color info
> in the db. Any idea how this can be implemented. This is not a
> requirement i'm facing - just curios.....
> _______________________________________________
> New York PHP Talk
> Supporting AMP Technology (Apache/MySQL/PHP)
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
More information about the talk
mailing list