|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 159 ||All time: 8,916 This week: 310|
This class can replaces a color in a PNG image by another color.
It takes a given color and replaces it in PNG image by another color.
The class saves back the image PNG file and returns the changed image as a data URL.
Prize: One big elePHPant Plush Mascott
|Sometimes you need to generate variants of the same image to present it in different colors.
PHP provides a good set of functions that you can use to manipulate images in any way you need. However some kinds of image processing can be very slow to run as PHP scripts.
This class provides a solution to create variants of a PNG image with a different background color, just by reading the PNG file contents and replacing a few bytes in the image file data directly.
?=============PNG Hex Color Modifier=============
-Paint a png image by hex reflecting in the front.
-Overrides the Hex value of the main PNG image file and make it viewed for the web and S.O.
-Even when reloading the page, the color continues as the last modified because the image file was modified too.
-The test.png in the img directory is the PNG that will be modified.
-The main class is in the resources directory.
-Bonus: JPG image HEX color modifier added (experimental stable release), download main image and set it in home.html.
-Add support for more colors.
-In the custom license file.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.