3 ms·
Reddit's thumbnailing script works nice as well, https://github.com/reddit/reddit/blob/master/r2/r2/lib/scraper.py https://github.com/reddit/reddit/blob/master/
by ChrisWoodall 14y ago
Reddit's thumbnailing script works nice as well, https://github.com/reddit/reddit/blob/master/r2/r2/lib/scraper.py https://github.com/reddit/reddit/blob/master/r2/r2/lib/scrap...
edit: I even think you are using a similar method.
- JacobiX 14y agoYes I'm using a similar method in the first section of the article (information theoretic solution), but I think that reddit is using the entropy of an image instead of the self-information. The self-information yields to better results in our case (empirically). In the latter sections I use different methods.
- deleted 14y ago[deleted]
- Hawkee 14y agoThis looks like a nice, simple solution. Now I wonder if there is a solution similar to this written in PHP.
- Hawkee 14y agoI found this: http://jueseph.com/2010/06/opticrop-content-aware-cropping-with-php-and-imagemagick/ http://jueseph.com/2010/06/opticrop-content-aware-cropping-w... Seems to be a similar solution using PHP and ImageMagick.