Php Imagecolormatch
# PHP imagecolormatch - Make the palette version of an image better match the true color version
[PHP Image Processing](#)
imagecolormatch β Make the palette version of an image better match the true color version.
### Syntax
bool imagecolormatch ( resource $image1 , resource $image2 )
Make the palette version of an image better match the true color version.
**Note:** This function is only available in PHP versions compiled with the GD library.
**Note:** This function requires GD 2.0.1 or higher (version 2.0.28 and above is recommended).
### Parameters
* **image1** A true color image resource.
* **image2** Must be a palette image, and must be the same size as image1.
### Return Values
Returns TRUE on success, or FALSE on failure.
### Example
### Related Articles
Create a new true color image.
[PHP Image Processing](#)
YouTip