YouTip LogoYouTip

Php Imagecolormatch

# PHP imagecolormatch - Make the palette version of an image better match the true color version [![Image 3: PHP Image Processing](#)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. [![Image 4: PHP Image Processing](#)PHP Image Processing](#)
← Memcached Clear DataMemcached Stats Slabs β†’