简体   繁体   English

Windows和Linux上的ImageMagick的“转换-棕褐色调”不同

[英]ImageMagick 'convert -sepia-tone' different on Windows vs. Linux

I have an issue with the 2 images below: the first one is created on Linux, the second one on Windows using the same command, same versions of ImageMagick (6.6.5-0). 我对下面的2张图像有疑问:第一个在Linux上创建,第二个在Windows上使用相同的命令,相同版本的ImageMagick(6.6.5-0)创建。 Tried newer versions of ImageMagick and they all seem to provide different results Windows vs. Linux. 尝试使用ImageMagick的较新版本,它们似乎在Windows与Linux上均提供不同的结果。

convert c.jpg -sepia-tone 80% 1.jpg (on Linux)
convert c.jpg -sepia-tone 80% 2.jpg (on Windows)

The results are very different and I cannot figure out why. 结果非常不同,我不知道为什么。

What am I doing wrong? 我究竟做错了什么?


(source: selfip.com ) (来源: selfip.com

(source: selfip.com ) (来源: selfip.com

I actually had to do 我实际上不得不

convert c.jpg -set colorspace RGB -sepia-tone 80% 1.jpg

basically forcing the use of the RGB colorspace and that solved my problem. 基本上强迫使用RGB色彩空间,这解决了我的问题。

Most likely, the release versions of your ImageMagick installations on Linux and Windows are different in more ways than the mere version numbers... 最有可能的是,在Linux和Windows上安装的ImageMagick的发行版本与仅使用版本号相比在更多方面有所不同...

To verify, run this command and compare the outputs in detail for the two platforms: 要验证,请运行此命令并详细比较两个平台的输出:

convert -version

Additionally, you may want to see how the outputs for convert -list configure differ. 另外,您可能希望查看convert -list configure的输出如何不同。 (Note, the format of the outputs this command gives is different anyway on the two platforms -- they are not directly comparable). (请注意,此命令给出的输出格式在两个平台上始终有所不同-它们不能直接比较)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM