You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you don't specify the format='jpeg', it's assuming that you have given it PNG data. It shouldn't raise a UnicodeError, but it still probably shouldn't result in a valid image.
instead of only b64-encoding for valid image data,
b64-encode unless it is specifically detected as b64-encoded valid image data.
This prevents garbage data from skipping the b64 step,
and causing unicode errors.
Closesipython#3081
For all JPEGs I have tried, I get the following error:
If I do:
it works fine. Using 'data=' also works fine for PNGs
The text was updated successfully, but these errors were encountered: