如何使用ImageMagick对图像进行像素化/模糊处理?

如何使用ImageMagick对图像进行像素化/模糊处理?

问题描述:

我想对图像进行像素化和/或模糊处理.我发现了模糊命令:

I want to pixelate and/or blur an image. I've found the command for the blurring:

$convert image.jpg -blur 18,5 newimage.jpg

正常工作,但我无法再使图像模糊.以及如何对图像进行像素化?我找不到网络上的声音示例.

to work but I cannot blur the image any more. And how do I pixelate the image? I couldn't find a sound example around the net.

Thx

这对我来说效果很好,在像素化和模糊之间提供了一种交叉:

This worked nicely for me, gives a sort of cross between pixelating and blurring:

convert -resize 10% image.jpg newimage.jpg
convert -resize 1000% newimage.jpg newimage.jpg

如果这对您很重要,则可以确保无法检索到数据.

You can be sure that the data cannot be retrieved, should that be important to you.

更改百分比年龄会更改像素化/模糊的数量

Changing the %ages will change the amount of pixelation/blur