I would like to know if it's possible to pixelate just a part of an image using a mask.
I know I could first create a downscaled image of the original, then just upscale and merge the original and the processed using a mask, but the question is, just as with blur effect, can I pixelate out of the box using imagemagick ?
Code: Select all
convert -scale 5% -scale 2000% original.jpg pixelated.jpg
convert original.jpg pixelated.jpg mask.jpg -composite pixelated.jpg
Code: Select all
convert original.jpg : -mask \( mask_or.jpg -alpha off -negate \)
-blur 0x8 +mask blur.jpg
Also that would allow me to make the pixelation using a polygon instead of a mask
Version: ImageMagick 7.0.7-14 Q16 x86_64
cli
OS : mac
Thanks in advance