通过 Javascript 或 PHP 修改图像颜色
我需要通过 Javascript 或 PHP 更改透明 PNG 的颜色,使其不会触及 100% 透明部分。我想要与 Photoshop 颜色叠加在图层上执行的操作完全相同(100% 颜色叠加 - 无色调变化)。
我已经在 StackOverflow 上找到了一个可以水平翻转图像的过滤器(谢谢大家!),但我在任何地方都找不到解决方案。
请帮忙并提前致谢!
I need to change the color of a transparent PNG that will not touch the 100% transparent part via Javascript or PHP. I would like to the the exactly same thing that Photoshop color overlay does on a layer (100% color overlay - no hue change).
I have already found a filter that can flip the image horizontally on StackOverflow (thanks guys!) but the solution to this I cannot find anywhere.
Please help and thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 imagefilter 和
IMG_FILTER_COLORIZE
Try imagefilter with
IMG_FILTER_COLORIZE