如何将EXR转换为PNG并同时调整亮度

时间:2017-01-31 20:23:07

标签: imagemagick blender openexr

我能够使用Image conversion from IFF and EXR formats to JPEG format中列出的技术将我的EXR图像转换为PNG。

convert 0007.exr /tmp/0007.png

不幸的是,PNG看起来很暗淡。

我应该在imagemagick convert命令行中添加什么来增加亮度?

1 个答案:

答案 0 :(得分:0)

从这开始:

enter image description here

您可以尝试-auto-gamma

convert start.jpg -auto-gamma result.jpg

enter image description here

如果-auto-gamma 过度您喜欢的图片,您可以应用一定比例的图片。所以,在这里我克隆原始图像并将自动伽玛应用于克隆,但之后只将80%重新混合到原始图像中,因为我感觉自动伽玛过度了:

convert start.jpg \( +clone -auto-gamma \) \
   -define compose:args=80 -compose blend -composite result.jpg 

enter image description here

或者,另一种选择,您可以尝试使用特定图片,也可以尝试使用-modulate获取亮度,其中100%表示"什么都不做" ,所以超过100的数字会增加亮度:

convert start.jpg -define modulate:colorspace=LCHuv -modulate 160 result.jpg

enter image description here