PHP imagecolormatch - Make the Palette Version of an Image's Colors Better Match the True Color Version
imagecolormatch — Makes the palette version of an image's colors better match the true color version.
Syntax
bool imagecolormatch ( resource $image1 , resource $image2 )
Make the palette version of an image's colors better match the true color version.
**Note:** This function is only available in PHP versions compiled with the GD library bundled.
**Note:** This function requires GD 2.0.1 or higher (2.0.28 or higher recommended).
Parameters
- image1 True color image link resource.
- image2 Must be a palette image, and must be the same size as image1.
Return Value
Returns TRUE on success, or FALSE on failure.
Example
Related Articles
- imagecreatetruecolor() Create a new true color image.
PHP Image Processing