0
I wanted to know how to take the total colors of a certain image, I analyzed some code of some sites, and some use ajax (jQuery) to send the image to a PHP page, but I do not know what it contains in this PHP page, could someone help me? Example:
0
I wanted to know how to take the total colors of a certain image, I analyzed some code of some sites, and some use ajax (jQuery) to send the image to a PHP page, but I do not know what it contains in this PHP page, could someone help me? Example:
Browser other questions tagged php javascript jquery html css
You are not signed in. Login or sign up in order to post.
What could be done in PHP is to use the GD library (http://php.net/manual/en/book.image.php) and loop the pixel-by-pixel image capturing and storing in an array.
– Thyago ThySofT
Here’s an example 3D histogram using JS: http://h3stogram.herokuapp.com/ The source is available on Github
– Bacco
Not Invent the wheel.
– Renan Gomes
Truth @Renan, Ctrl c + Ctrl v + some adjustments is more practical for sure, is that actually his question says that the image goes to a page PHP and that he doesn’t know what’s on that page PHP, I said what I might have =)
– Thyago ThySofT