Skip to content
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

Is Python and Golang supported? #57

Open
DonaldTsang opened this issue Dec 4, 2019 · 4 comments
Open

Is Python and Golang supported? #57

DonaldTsang opened this issue Dec 4, 2019 · 4 comments

Comments

@DonaldTsang
Copy link

DonaldTsang commented Dec 4, 2019

Would like to know if Python and Golang is supported.
Python apps that are common:

  • Pillow
  • OpenCV
  • ffmpeg
  • QtPy with PyQt5 or PySide2
  • (others)
@eustas
Copy link
Collaborator

eustas commented Jan 28, 2020

See https://github.com/google/brunsli/tree/master/contrib/py/jxl_library_patches
In short - you can apply "runtime patch" that will enable reading Brunsli images from:

  • OpenCV (cv2.imread)
  • imageio
  • PythonMagic (PythonMagick.Image(filename))
  • PIL(/Pillow)
  • scipy.misc.imread / matplotlib.pyplot.imread / matplotlib.image.imread

I hope, those libraries are used by higher level libraries, e.g. Qt and ffmpeg, or at least could be easily "mixed-in".

No support for golang yet. Hopefully will add it soon. Would be great if you provide your vision, what kind of support is required in golang (e.g. "get Brunlsli bytes, return JPEG bytes").

@DonaldTsang
Copy link
Author

@eustas is it possible to use this repo as a tracker to see when it will get "mainlined" into the respective libraries?

@eustas
Copy link
Collaborator

eustas commented Jan 28, 2020

Not impossible =)
All we need is a good will of project owners =)

@Howard0x3f
Copy link

Can I use python to call brunsli's encoder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants