【发布时间】:2019-01-30 13:35:11
【问题描述】:
目前我正在使用 ImageMagick 版本 6.7.2-7 的 CentOs Unix 服务器上运行此命令。
convert Test.tif -channel All -separate -resize 50% -background none -alpha copy -combine Test10.tif
它正在做我需要它做的一切——但它为每个通道添加了一个白色背景,如下所示: the test file before and after the command as shown in Photoshop CS4
我尝试了很多不同的 alpha 背景设置等,但我无法让它保持 RGB 通道的透明度。 This is the test file if you want to check it out
我不知道它是否需要我运行此命令并指定配置文件 - 它非常接近正确 - 这可能非常简单,但我找不到任何人提到 .tif 的这个特定问题?
提前致谢。
更新
Outcome After the first suggestion by fmw42 - 在 Windows 7 专业版上运行:ImageMagick 7.0.8-25 Q16 x64
【问题讨论】:
-
您为测试文件提供的文件是白色 PNG(不透明)而不是 TIF。请发布 TIF 文件的链接。
-
@fmw42 - 这将是 StackOverflows 尝试处理透明 .tif ;) urbanwarfarestudios.co.uk/Test.tif
标签: php tiff imagemagick-convert