Page MenuHomePhabricator

ImageMagick Engine
ClosedPublic

Authored by Gilles on Feb 6 2016, 11:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 29, 11:12 PM
Unknown Object (File)
Wed, Nov 29, 10:46 PM
Unknown Object (File)
Thu, Nov 23, 9:04 PM
Unknown Object (File)
Sun, Nov 19, 12:05 AM
Unknown Object (File)
Mon, Nov 13, 11:10 AM
Unknown Object (File)
Sat, Nov 11, 9:07 PM
Unknown Object (File)
Wed, Nov 8, 5:04 PM
Unknown Object (File)
Tue, Nov 7, 11:49 PM
Subscribers
None

Details

Maniphest Tasks
T125167: ImageMagick engine
Reviewers
ori
fgiunchedi
Commits
rTHMBREXT77ff68354aae: ImageMagick Engine
Patch without arc
git checkout -b D117 && curl -L https://phabricator.wikimedia.org/D117?download=true | git apply
Summary

Fixes T125167

Diff Detail

Repository
rTHMBREXT Thumbor Plugins
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Gilles retitled this revision from to ImageMagick Engine.
Gilles updated this object.
Gilles edited the test plan for this revision. (Show Details)
Gilles added a reviewer: ori.

Make exif optimizer use ShellRunner

wikimedia_thumbor/engine/imagemagick/imagemagick.py
57

I'd explain in a comment why the monkey patching is needed here

62

return extension in ('.jpg', '.png')

71

shouldn't both width/height be > 0 ?

168

early return here possible since all branches return anyway?

if not hasattr(self, 'buffer'):
  return self.image.size
...
Gilles marked 2 inline comments as done.

Improve style

wikimedia_thumbor/engine/imagemagick/imagemagick.py
71

You can resize by width or height alone, in fact in what we do it's just width. So either requests parameter being set means that some resizing is going to happen.

This revision is now accepted and ready to land.Feb 10 2016, 9:09 AM
This revision was automatically updated to reflect the committed changes.