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

如何使用ImageMagick对图像进行像素化/模糊?,imagemagick,Imagemagick,我想对图像进行像素化和/或模糊处理。 我找到了模糊的命令: $convert image.jpg -blur 18,5 newimage.jpg convert -resize 10% image.jpg newimage.jpg convert -resize 1000% newimage.jpg newimage.jpg 但我不能再模糊图像了。 如何对图像进行像素化?我在网上找不到一个好的例子 Thx我对ImageMagick一无所知,但您可以尝试使用双三次曲线将图像调整到更小的尺寸,然

我想对图像进行像素化和/或模糊处理。 我找到了模糊的命令:

$convert image.jpg -blur 18,5 newimage.jpg
convert -resize 10% image.jpg newimage.jpg
convert -resize 1000% newimage.jpg newimage.jpg
但我不能再模糊图像了。 如何对图像进行像素化?我在网上找不到一个好的例子


Thx

我对ImageMagick一无所知,但您可以尝试使用双三次曲线将图像调整到更小的尺寸,然后将图像调整回更大的尺寸


该技巧使用.net的System.Drawing对象进行操作。

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

$convert image.jpg -blur 18,5 newimage.jpg
convert -resize 10% image.jpg newimage.jpg
convert -resize 1000% newimage.jpg newimage.jpg
如果这对您很重要,您可以确定无法检索数据


更改%年龄将更改像素化/模糊的数量

要获得适当的方形像素化,请尝试:

convert -scale 10% -scale 1000% original.jpg pixelated.jpg

事实上,这个问题的正确性仍然完好无损,所以没关系。不管怎么说,我刚刚看到了今年的事,伙计,我的错..对不起!