0

I want to make a wordpress theme with a color picker to switch the main color(s) of the theme. At some points of the theme the colors I want to change could be in images - maybe when it comes to rounded corners, overlapping stuff or anything else that couldn't be easily done in plain CSS.

I planned to take care of those things using a color switching function in GD. However, as I have basically no experience with GD I first wanted to make sure if those color switching functions can take care of shadows, antialiasing and stuff like that. The examples I found yet all just changed one plain color to another plain color.

Is there a trick to do that with GD and if yes, can you give me a link to a tutorial or a good example?

Thank you!

4

2 に答える 2

1

豊富なカラー化アルゴリズム:

http://php.net/manual/en/function.imagefilter.php

また、「phpcolorize」を検索するグーグルで何かいいものを見つける必要があります

于 2010-12-26T03:04:53.117 に答える
1

これらの固定カラーアンチエイリアス画像はすべて、背景とマージする必要のあるビットに適切な透明度が設定された.png画像に置き換えることをお勧めします。そうすれば、配色ごとに1セットではなく、テーマの画像セットが1つだけになり、すぐに管理できなくなる可能性があります。

于 2010-12-26T10:59:32.110 に答える