New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ImageShow support for GraphicsMagick #5349
Conversation
Add support to run the tests using GraphicsMagick's "gm convert" instead of ImageMagick's "convert".
Thank you for the PR, please could you also include this in the release notes? https://github.com/python-pillow/Pillow/blob/master/docs/releasenotes/8.2.0.rst |
Sure! Sidenote: Maybe its point worth adding this suggestion (i.e. when providing a pull request also update the releasenotes) to .github/CONTRIBUTING.md? |
The Docs fail in Test / ubuntu-latest Python 3.9 (pull_request) and I guess the culprit is the warning Sadly I have no clue how to correctly reference the newly added class. The usual |
Looking at the generated docs, I see that the link to the new viewer references Therefore a quick hack would be to use |
523c8c3
to
349b0fb
Compare
@nulano Thanks for the hint (in particular the URL to the preliminary generated docs) and solving the mystery. It seems expected and unexpected that Sphinx uses its own class hierarchy instead of the one of Python. In the end I settled with Interesting side note: Test / ubuntu-latest Python 3.9 (pull_request) failed the docs test due to the warning while docs/readthedocs.org:pillow succeeded... |
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Good idea! We already had it in https://github.com/python-pillow/Pillow/blob/master/docs/releasenotes/index.rst but makes sense to include it in the contrib guide too. Please see PR #5357. Thanks! |
GraphicsMagick[0] is a "stable/conservative" fork of ImageMagick[1]. It provides the same commands and is almost always interchangable with the corresponding imageMagick command. The ImageMagick command
<im-command> <arguments>
becomesgm <im-command> <arguments>
, e.g.convert file.jpg file.png
becomesgm convert file.jpg file.png
.This pull request does two things:
test_file_palm.py
seems to use it)ImageShow
to supportgm display
[0] http://www.graphicsmagick.org/
[1] http://www.graphicsmagick.org/mission.html