Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pixelate/blur an image using ImageMagick?

Tags:

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

like image 611
Jon Romero Avatar asked Dec 01 '08 15:12

Jon Romero


1 Answers

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

like image 190
Colin Pickard Avatar answered Sep 19 '22 06:09

Colin Pickard