通过ImageMagick添加文本后靠近字体的噪音

时间:2013-11-29 14:34:03

标签: imagemagick image-manipulation imagemagick-convert

我将文字放在图像上并有一些噪音。我该怎么办呢? 图像magick选项:

[
                currentImage,
                "-font", "Micra-Bold",
                "-pointsize", "40",
                "-strokewidth", "1",
                "-stroke", "black",
                "-fill", "white",
                "-gravity", "North",
                "-annotate", "+0+10", req.body.memData.actNumber,
                "-gravity", "South",
                "-pointsize", "26",
                "-annotate", "+0+10", req.body.memData.actText,
                ""+memsPath+tempName+".jpg"
            ];

和我的图片enter image description here

1 个答案:

答案 0 :(得分:1)

噪音可能是JPEG伪影。尝试使用更高的质量(根据&#34,您的图像质量为70;识别-verbose")。所以,试试

"-quality", "92",

例如。