Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP imagecolormatch - Make the Palette Version of an Image's Colors Better Match the True Color Version

PHP imagecolormatch - Make the Palette Version of an Image's Colors Better Match the True Color Version

PHP Image ProcessingPHP Image Processing

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

Return Value

Returns TRUE on success, or FALSE on failure.

Example





Related Articles

PHP Image ProcessingPHP Image Processing