SQLTerminal.app
now available

XPath.app
now available
Want fresh tech tips in your inbox?

How To Create Blurry Background Images Programmatically from the Command Line or with Ruby

       

Turn this

into this

You can use ImageMagick to make blurry images.

To install with Homebrew on OS X.


brew install imagemagick

After installing you can run from the command line


  convert yourimage.png -channel RGBA -blur 0x8 your-blurred-image.png

You can run this from your Ruby scripts with the back ticks.


`convert path/to/original-image.jpg -channel RGBA -blur 0x5 path/to/blurry-image.jpg`

Change the value for the "-blur 0x8" argument to increase/decrease they blur. For instance, "-blur 0x1" would be a lot less blurry.

Tagged w/ #imagemagick #command line

Apps I've Built

XPath Expression Editor
Practice and improve your XPath skills with XPath Editor
Click to buy on the App Store
Photo Location Changer
Easily change the location on your photos and videos
Click here for more info about the app
Photo Date Changer
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app