So I decided the other day that what would be really cool to do for my geocoded current weather display would be if I could actually upload a picture of my current location from my phone and apply the weather to it. The problem is that I'd have to find a way to automagically remove the sky from the images. I'll be honest when I say that at first I thought this might be beyond my meager skills with php image manipulation because the sky is usually a gradient of different colors. But I got to work on it anyway.
Well I don't have the images in the weather display yet but i did solve the sky removal issue. And here are a couple examples of removing the sky from images with some creative use of the PHP GD image library... (I'd tell you how I did it but for now I think I'll keep this one little secret. btw... it took less than 30 lines of code to do this.)