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
您的本地服务器可能具有不同版本的Imagemagick。如果它是默认安装,它可能会过期三年或更久,并且Imagemagick正在持续开发中。 – Bonzo
我更新了版本,但问题依然存在 –