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

Support jpeg for image transfer #1

Open
freeman-lab opened this issue Sep 11, 2014 · 1 comment
Open

Support jpeg for image transfer #1

freeman-lab opened this issue Sep 11, 2014 · 1 comment

Comments

@freeman-lab
Copy link
Member

Sending images by writing to a file object now works in the python client, through the Lightning.image method, but it only works for format='png' (as the argument to imsave); using jpeg fails during the post request with a 500 error. Can others try this? Maybe an issue with my local image libraries, but maybe a problem on the backend. Fine to stick with pngs, but I thought jpeg might be faster to transfer.

@mathisonian
Copy link
Member

@freeman-lab I got the following error when I tried using format='jpeg'

E           ValueError: Format "jpeg" is not supported.
E           Supported formats: emf, eps, pdf, png, ps, raw, rgba, svg, svgz.

it seems like imsave doesn't support jpeg. I'll keep improving the error handling on this so we can start getting more informative messages than 500 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants