Processing and Javascript code for the post on seam-carving for content-aware image resizing.