Content-aware image resizing in JavaScript | Hacker News