Convert an Image to Grayscale with ImageMagick
A few years ago I bought a DSLR camera with a bunch of filter effects built in and it's been worth every penny.  I took some incredible photos in London, Paris, and Jamaica, and tooks some really special photos of my son during his first few years.  And many of my favorite photos were taken with grayscale filter but some I took in color and badly wanted them in grayscale.  Of course I can use Photoshop to convert the image to grayscale but that's too much work.  I have ImageMagick -- why not use the shell to very quickly convert it to grayscale?
Converting the image to grayscale with ImageMagick is simple:
convert my-image.jpg -colorspace Gray my-image-gray.jpg
The command is self-explanatory and executes in milliseconds.  And since Photoshop takes a few seconds to start and I have to do the work manually, ImageMagick makes everything so much easier.
![Regular Expressions for the Rest of Us]()
Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...
![5 Awesome New Mozilla Technologies You’ve Never Heard Of]()
My trip to Mozilla Summit 2013 was incredible.  I've spent so much time focusing on my project that I had lost sight of all of the great work Mozillians were putting out.  MozSummit provided the perfect reminder of how brilliant my colleagues are and how much...
![MooTools HTML Police: dwMarkupMarine]()
We've all inherited rubbish websites from webmasters that couldn't master valid HTML.   You know the horrid markup:  paragraph tags with align attributes and body tags with background attributes.  It's almost a sin what they do.  That's where dwMarkupMarine comes in.
![Introducing MooTools LazyLoad]()
Once concept I'm very fond of is lazy loading.  Lazy loading defers the loading of resources (usually images) until they are needed.  Why load stuff you never need if you can prevent it, right?  I've created LazyLoad, a customizable MooTools plugin that...
How about sepia tones? After all, it’s just like converting to grayscale with a different balance of red, green and blue.