Content-aware image resizing in JavaScript
trekhleb.dev
Content-aware image resizing in JavaScript
1–10 of 68 posts
Re: Content-aware image resizing in JavaScript
#2This should be a prime example where WebAssembly could come into play, no?
Re: Content-aware image resizing in JavaScript
#3I think this would make a very good data augmentation for training deep learning models, because the resulting images are both unique, not just linearly transformed, and still often look natural.
Re: Content-aware image resizing in JavaScript
#4I wish there were more of such interesting and educational articles with great examples and explanations.
Re: Content-aware image resizing in JavaScript
#5daaaang that's really nice. i sort of wondered if someone had done something like this in javascript. is really cool to see, nice work.
Re: Content-aware image resizing in JavaScript
#6That example where you can upload your own image is amazing. It even shows the seams being carved in real time. Well done!
Re: Content-aware image resizing in JavaScript
#7No post body was provided.
Re: Content-aware image resizing in JavaScript
#8You 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.
Re: Content-aware image resizing in JavaScript
#9Gosh dang this is amazing.
Re: Content-aware image resizing in JavaScript
#10Is there an opposite of this, where it will expand an image size?