Thumbor is a on-demand image manipulation service with cropping, resizing and filtering capabilities. When compared to other imaging libraries, the most important feature of thumbor is the smart cropping (detectors) feature which is uses machine learning (cascade classification) for detection of important point on pictures.
Difference between normal and smart mode is the smart mode tries to protect focal points on picture. This difference can seen in the 2nd and 3rd picture. (on 3rd picture, focal point is shifted towards the top rows players.)
Orginal Image (w:1886 h:1227)
Cropped Image (w:1200 h:400)
Smart Cropped Image (w:1200 h:400 )
- App Configuration
- Stack: heroku-16
heroku-16 used instead of heroku-18 because of the missing operating system packages (libpng, libjasper). stack-configurations - Buildpack: heroku/python
- Stack: heroku-16
- Runtime
- python-2.7.15
- Pip Packages
- thumbor
- opencv-python-headless
- Procfile
web: thumbor -p $PORT
Simply tells the thumbor which port should used.