imagecolorresolve

PHP 4, PHP 5, PHP 7, PHP 8
imagecolorresolve - Get the index of the specified color or its closest possible alternative
Manual
Code Examples

Example #1 Using imagecoloresolve to get colors from an image

Result: Array ( [0] => 89 [1] => 85 )
PHP Version:


Function imagecolorresolve:

Image Processing and GD Functions

Most used PHP functions