Page MenuHomePhabricator

Compare performance of thumbor rendering engines
Closed, ResolvedPublic

Description

Out of the box thumbor uses the Python Imaging Libary (PIL), it also supports OpenCV and GraphicsMagick.

Details

Related Changes in Gerrit:

Event Timeline

• Gilles claimed this task.
• Gilles raised the priority of this task from to Medium.
• Gilles updated the task description. (Show Details)
• Gilles added subscribers: ori, jeremyb, • Aklapper and 9 others.

The engines don't seem to be well maintained, the GraphicsMagick exhibits a but with the RESPECT_ORIENTATION option (filed https://github.com/thumbor/graphicsmagick-engine/issues/5 ). It doesn't seem to be particularly faster than PIL anyway.

The OpenCV engine doesn't have that bug and seems to work about twice as fast as PIL. However it dropped the ICC profile when it shouldn't have (filed https://github.com/thumbor/opencv-engine/issues/16 ).

While the OpenCV engine sports a huge performance boost, the fact that it doesn't support ICC profiles properly is a sign that those alternative engines aren't as well maintained as Thumbor's built-in PIL one. We'd have to fix ICC support upstream before being able to use the OpenCV engine.

Change 235227 had a related patch set uploaded (by Gilles):
Thumbor OpenCV engine

https://gerrit.wikimedia.org/r/235227

Change 235227 merged by jenkins-bot:
Thumbor OpenCV engine

https://gerrit.wikimedia.org/r/235227