Closed pleomax0730 closed 29 minutes ago
Cannot reproduce this error, seems to work fine.
May be a problem with google-cloud-aiplatform
version
Cannot reproduce this error, seems to work fine.
May be a problem with
google-cloud-aiplatform
version
Hi @jzaldi , Thanks for the reply.
Found that pillow PIL_Image
recognize the image mime type as mpo
rather than JPEG
.
Force saving as jpeg worked.
from PIL import Image
with Image.open('static/puton.jpg') as img:
img.save('static/puton.jpg', format='JPEG')
Passed case
image_data
is base64 encoded string.Environment:
Code to reproduce the error:
Error: