imagecolormatch

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
imagecolormatch - Makes the colors of the palette version of an image more closely match the true color version
Manual
Code Examples

imagecolormatch( GdImage$image1, GdImage$image2 ): bool

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

Parameters

image1

A truecolor image object.

image2

A palette image object pointing to an image that has the same size as image1.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.0.0 image1 and image2 expect GdImage instances now; previously, resources were expected.

Related Functions

Example of imagecolormatch

Show all examples for imagecolormatch

PHP Version:


Function imagecolormatch:

Image Processing and GD Functions

Most used PHP functions