Live data from Hacker News

Content-aware image resizing in JavaScript

trekhleb.dev

1–10 of 68 posts

Re: Content-aware image resizing in JavaScript

#8
You see lots of demos of this, I think because the algorithm is interesting but also pretty easy to implement.

As an approach it seems to do a decent job with either very small changes (e.g. slight change of aspect ratio) or uninteresting images, but aesthetically the results seem bad on most interesting images; I suspect because targeting "low information" regions of the image removes tension that is needed. Often a simple crop is much better, it seems.

Post reply on HN