Home > PHP > Function > GD > imagecolormatch()

imagecolormatch()

imagecolormatch - Makes the colors of the palette version of an image more closely match the true color version

Syntax

bool imagecolormatch (resource $image1, resource $image2)

Arguments

  • image1 - A truecolor image link resource.
  • image2 - A palette image link resource pointing to an image that has the same size as image1.

Description

Makes the colors of the palette version of an image more closely match the true color version.

Version

PHP 4.3.0, 5

Return value

Returns TRUE on success or FALSE on failure.