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

Question: Writing out to different formats #126

Open
bentron2000 opened this issue May 3, 2022 · 1 comment
Open

Question: Writing out to different formats #126

bentron2000 opened this issue May 3, 2022 · 1 comment

Comments

@bentron2000
Copy link

I seem to be having trouble figuring out how to get an image out as a jpg.

Currently I have a PhotonImage that I created by reading in a tiff image from a buffer, and I can call

image.get_base64()

which gives me...

data:image/png;base64,iVBORw0KGg...

Apologies if I'm missing something obvious - but how might I get a data:image/jpeg;base64,NiCeJpEGDAtaHere...?

@bluthen
Copy link

bluthen commented May 6, 2022

#125

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

2 participants