This is absolutely incredible
Someone showed me a demo from a piece of software called Seam Carver, which uses a very clever algorithm for "content-aware" imagine resizing. The software searches for rivers of what it deems to be unimportant pixels. These rivers or "seams" are then removed as needed to resize the image. Check out the website/video for a more detailed explanation, and mind-blowing demo: