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.
我们有一个系统可以从路径、textPaths 和上传的图像(.png 是一种支持的类型)编译 SVG。
然后我们转换 .svg -> .png。此过程会在图像(以及所有透明边缘)周围留下奇怪的灰色边框,如下图所示。
有人知道如何解决这个问题吗?
可能是幸运的猜测,但我知道 CI 存在一些问题 alpha 透明度可能会导致透明图像出现问题。我有类似的调整透明 PNG 的大小。
尝试将 Aplha 设置为零(我认为这是正确的解决方案)