News for hackers. Stuff that matters.
Re:Content-aware image resize library by asoto on Tuesday January 30, 2018 @07:29PM (#16270357)
I wrote a version of this in javascript with a live demo you can play with at https://alexander.soto.io/seam-carving
Re:Content-aware image resize library by peterburkimsher on Tuesday January 30, 2018 @09:23PM (#16270829)
Your JavaScript version is very easy to use, and I'm so glad I can upload my own images instead of just using examples!

The algorithm itself looks like it needs face (and body) detection to be really useful, though.

Example: My girlfriend and I on holiday in Australia.

Original:

http://peterburk.free.fr/seamCarving/lighthouse.jpg

Shrunk:

http://peterburk.free.fr/seamCarving/lighthouse_seamCarving....

Re:Content-aware image resize library by overload119 on Tuesday January 30, 2018 @11:24PM (#16271288)
Am I the only one getting a laugh out of this? I also tried it on myself and the result was funny.
Re:Content-aware image resize library by khedoros1 on Wednesday January 31, 2018 @01:20AM (#16271904)
With a little change to the algorithm, you can mark areas as "must not change" and "must change", basically manually marking areas as "high energy" and "low energy".
Re:Content-aware image resize library by lysium on Tuesday January 30, 2018 @11:20PM (#16271262)
In all fairness, the read me says “Todo: face detection”
Re:Content-aware image resize library by peterburkimsher on Tuesday January 30, 2018 @11:24PM (#16271291)
That's true, and I agree with the author!

It will be more complicated than it seems, though, because I just tried the GUI version from gabeiscoding above, and got the following result:

http://peterburk.free.fr/seamCarving/lighthouse_seamCarvingG...

Re:Content-aware image resize library by lph on Wednesday January 31, 2018 @02:47PM (#16276931)
Yeah, but the lighthouse looks great!
Re:Content-aware image resize library by elsurudo on Wednesday January 31, 2018 @04:49AM (#16272712)
That's really neat!

With my tongue somewhat-in-cheek, I wanted to point you that you may want to be careful with that sample pic of the Eiffel Tower at night!

See: https://petapixel.com/2017/10/14/photos-eiffel-tower-night-i...

Re:Content-aware image resize library by tangoalpha on Tuesday January 30, 2018 @10:45PM (#16271109)
Unable to resize on mobile. Consider giving some margin or padding on the right of the image so one can drag the line to resize.
Re:Content-aware image resize library by degenerate on Tuesday January 30, 2018 @08:13PM (#16270551)
That's _extremely_ cool! Thanks for sharing
Re:Content-aware image resize library by CoryG89 on Tuesday January 30, 2018 @09:48PM (#16270930)
Super awesome!