如何使用ImageMagick对图像进行像素化/模糊处理? [英] How to pixelate/blur an image using 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
这篇关于如何使用ImageMagick对图像进行像素化/模糊处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文