2016-01-24 44 views
1

我有一个original图像,我只想调整它的大小,但在调整大小时,图像变得更红。我尝试了很多参数,但没有人工作。另外奇怪的是,在我的本地ubuntu上一切正常,问题只发生在CentOs服务器上;imagemagick:在png文件转换过程中出现错误的颜色

这是我的尝试:

convert fileForRedTest.png -background white -alpha remove fileForTest-result.png 
convert fileForRedTest.png -colorspace RGB fileForRedTest-result.png 
convert fileForRedTest.png -define png:bit-depth=16 fileForRedTest-result.png 
convert fileForRedTest.png -define png:bit-depth=16 -define png:color-type=6 fileForRedTest-result.png 
convert fileForRedTest.png png32:fileForRedTest-result.png 
+0

您的本地服务器可能具有不同版本的Imagemagick。如果它是默认安装,它可能会过期三年或更久,并且Imagemagick正在持续开发中。 – Bonzo

+0

我更新了版本,但问题依然存在 –

回答

0

有两点原因:

  1. 旧版本LIB的(这就是为什么我得到不同的结果)
  2. 此参数:-define PNG:排除-块=所有-strip
0

我没有足够的声誉添加评论。 在Windows上:IM 6.8.9也造成了很多红色。升级到最新版本,6.9.3修复了这个问题。我会再看一下目标机器上的二进制文件。

相关问题