Image blurring
Let’s see how to blur images with image magick. Most of the linux distros comes with image magick by default, as a linux user this forced me to use it; working with linux is doing things the hard way & once you get used to it, you will not look for other options. If you learn image magick, you will know that it is the best tool for quick image edits.
Original Image
Consider the above image, let’s try to blur this using the command below.
convert original_image.jpg -blur 0x8 blured_image.jpg
Blurred Image
To add more blurriness you can increase the number; example, 0x10, 0x12 etc..
Image resize
This is super useful. One of the most commons things we do with images is to re-size them. Open image-magic from command-line using display
command.
display flying-bat.gif
Let’s resize the image to 64×64 bit small image using convert
command below,
convert flying-bat.gif -resize 64x64\! flying-bat-small.gif
That’s it. Please also checkout other blog posts on goacademy.