You are here: Re: How can I get GIF histogram data using PHP? « PHP Programming Language « IT news, forums, messages
Re: How can I get GIF histogram data using PHP?

Posted by Oli Filth on 01/09/06 03:39

firewoodtim said the following on 08/01/2006 18:53:
> I want to analyze a GIF file and retrieve the histogram data on the
> image (pixel quantity and color symbol for each color in the file.)
> Does anyone know how to use PHP to do this?

Load the image with imagecreatefromgif(). Then loop through each pixel
of the image, call imagecolorat() to obtain the palette index for that
pixel, and increment a tally for each palette index.

These functions are described in the PHP manual.


--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация