Skip to content

pnginfo #13901

Answered by missionfloyd
AIjie-sen asked this question in Q&A
pnginfo #13901
Nov 8, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Save it like this instead.

with open("output.png", "wb") as f:
    f.write(base64.b64decode(images[0]))

This will save the file as-is instead of re-encoding it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AIjie-sen
Comment options

Answer selected by AIjie-sen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants