通过 Javascript 或 PHP 修改图像颜色

发布于 2024-12-02 09:23:38 字数 200 浏览 2 评论 0原文

我需要通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好倦 2024-12-09 09:23:38

尝试使用 imagefilterIMG_FILTER_COLORIZE

Try imagefilter with IMG_FILTER_COLORIZE

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文