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

Only PNG images work? Can't use JPEG or WEBP images. #88

Open
onetrev opened this issue Dec 23, 2024 · 0 comments
Open

Only PNG images work? Can't use JPEG or WEBP images. #88

onetrev opened this issue Dec 23, 2024 · 0 comments

Comments

@onetrev
Copy link

onetrev commented Dec 23, 2024

I didn't see anything in the docs about this, but every time I try to use a JPEG image, I get the following response:

400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.0.content.1.image.source.base64.data: The image specified was not valid"}}

If I then try to use a WEBP version of the image instead, I get:

The file is not an image.

The only thing that works for me is instead saving my image as a PNG.

System Info:
Version: 0.1.1
Anthropic API

@onetrev onetrev mentioned this issue Jan 8, 2025
@onetrev onetrev changed the title Can't use JPEG or WEBP images. Only PNG images work? Can't use JPEG or WEBP images. Jan 8, 2025
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

1 participant