-
Notifications
You must be signed in to change notification settings - Fork 43
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
Improve repr of image bytes #902
Conversation
Linting is failing due to flake8 5.0.0 release. See gforcada/flake8-isort#115 Other CI failures are due to a utf8 decoding error which I am also seeing on |
This is great. I think the other CI failure is because Glymur pushed a new version. Once that clears, if flake8-isort hasn't been updated, I'll pin it so CI passes. |
If you rebase from or merge master, I think CI will pass (or at least be relevant). |
Oof, even more test failures coming from the converter |
There was a |
The CI is still failing, but passes locally. I'll ssh in to circle to try to figure it out. |
Thank you for finalizing this, @manthey! |
When using
getThumbnail()
orgetTile()
inipython
/Jupyter, thebytes
repr output can be overbearing and not all that useful as the image bytes can overtake the output with very long amounts of data.These changes add a wrapper class to the
bytes
object for when we are returning PNG, JPEG, or TIFF image data (to give more user-friendly outputs in ipython and show an actual preview of the image in JupyterThis is incredibly useful when trying to debug the graphical outputs of these methods.
master
This branch
Jupyter
master
Similarly works with
getTile()
:TIFF encodings simply repr out in Jupyter: