Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 psd,我想将该 pdf 中设置的过滤器应用到画布上。我正在为此使用 CamanJS 库。
但问题是 Photoshop 和 Canvas 中的范围不同。我试图转换它,但我没有得到与 Photoshop 相同的结果。
知道是否有任何转换工具。
例如,Hue 在 Photoshop 中的范围是 0 到 360。而在 Canvas 中是 0 到 100。
如果可以使这项任务更容易,我愿意使用任何其他库。
这是我的输入图像。
这就是我想要实现的目标。
提前致谢。
您可以尝试使用 CamanJS 过滤器调整,但这是我对您想要的效果的尝试:
curves: 'rgb', [0, 0], [100, 50], [150, 200], [255, 255] vibrance: 5 saturation: -40 colorize: '#cc9922', 35 contrast: 10 gamma: 1.3