imagemagick -contrast-stretch不起作用(v6.7)

时间:2022-04-11 08:58:08

Why doesn't -contrast-stretch 15% affect the output in this syntax?

为什么--contrast-stretch 15%会影响此语法中的输出?

convert -density 300 -trim test1.pdf -contrast-stretch 15% test1_%02d.png

Imagemagick version

Imagemagick版本

root@amd-3700-2gb ~ # convert -version
Version: ImageMagick 6.7.7-10 2013-09-01 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

The docs says it was implemented in v6.2

文档说它是在v6.2中实现的

http://www.imagemagick.org/Usage/color_mods/#contrast-stretch

1 个解决方案

#1


1  

The contrast-stretch does not work because the percentage is too low. Increasing it will modify the image but probably not give you the desired result.

对比度拉伸不起作用,因为百分比太低。增加它会修改图像,但可能无法提供所需的结果。

If you are trying to cleanup the scanned image you might have more luck with the textcleaner script from Fred Weinhaus.

如果您正在尝试清理扫描图像,那么Fred Weinhaus的textcleaner脚本可能会更加幸运。

#1


1  

The contrast-stretch does not work because the percentage is too low. Increasing it will modify the image but probably not give you the desired result.

对比度拉伸不起作用,因为百分比太低。增加它会修改图像,但可能无法提供所需的结果。

If you are trying to cleanup the scanned image you might have more luck with the textcleaner script from Fred Weinhaus.

如果您正在尝试清理扫描图像,那么Fred Weinhaus的textcleaner脚本可能会更加幸运。