Re:Image Cropping and Scaling Algorithm using Graph Theory
by keenerd on Thursday April 05, 2012 @11:43AM
(#3803052)
Site does not render without JS enabled. At all. You get a flat white page. Enabling JS lets it render, but also scrolls crippling slowly. If I could downvote right now I would.
But it gets worse.
Nothing in here is about graph theory. It is a massive over complication. He is just trying to resize to a new aspect ratio by cropping the least amount. While dragging in calculus? This is really very simple and common. Imagemagick even has a dedicated option for it:
To add insult to injury, he then uses Imagemagick to do the resize! The article is misleading, poorly written and hosted on a horrible platform to boot.
But it gets worse.
Nothing in here is about graph theory. It is a massive over complication. He is just trying to resize to a new aspect ratio by cropping the least amount. While dragging in calculus? This is really very simple and common. Imagemagick even has a dedicated option for it:
That caret does all the heavy lifting. (see http://www.imagemagick.org/Usage/resize/#fill for more)To add insult to injury, he then uses Imagemagick to do the resize! The article is misleading, poorly written and hosted on a horrible platform to boot.