ethereon / lycon

A minimal and fast image library for Python and C++
Other
287 stars 27 forks source link

Options in save function #2

Closed kosmos342 closed 7 years ago

kosmos342 commented 7 years ago

I tried to change jpeg quality on saving:

lycon.save(dest_image, resized, options={lycon.Encode.JPEG_QUALITY: 80})

and I got this error:

  File "/usr/local/var/pyenv/versions/3.5.3/envs/sa/lib/python3.5/site-packages/lycon/core.py", line 24, in save
    _lycon.save(path, image, options)
_lycon.PyconError: Assertion Failure: `output_vec.size() == num_elems` evaluated to false in `vector_from_pyobject` (/private/var/folders/jy/wf09twtn07zfx65xm7ycd3x80000gp/T/pip-build-u9q840_5/lycon/src/lycon/python/interop.h:86)

macos 10.12.4

ethereon commented 7 years ago

Thanks for reporting this. It's been fixed in the latest release (v0.1.9).