Get full image colors

Asked

Viewed 46 times

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:

http://prntscr.com/90lnmx

  • 1

    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.

  • 1

    Here’s an example 3D histogram using JS: http://h3stogram.herokuapp.com/ The source is available on Github

  • 2
  • 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 =)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.