X
X
xsash2018-06-08 20:34:34
PHP
xsash, 2018-06-08 20:34:34

How to color a gray image using php?

Tell me which way to dig. There are blank images in the form of three-dimensional figures.
In a graphics editor, you can easily repaint them in any color while maintaining highlights and volume. I decided to transfer, automate, this process to php. The simplest solution is to make the object gray and then "paint" it.
I thought to use GD, but all "native" GD filters are rather primitive.
There is an algorithm for "color shift" around the color wheel. Close, but not that.
5b1abde148d9a531986582.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
santaatnas, 2018-06-08
@santaatnas

https://php.ru/manual/imagick.colorizeimage.html

S
Sergey Zimoglyadov, 2018-06-08
@wppdevelop

See imagine.readthedocs.io/en/latest/.
You may have to make the final picture from several pre-processed blanks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question