ethereon / lycon

A minimal and fast image library for Python and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Options in save function

kosmos342 opened this issue · comments

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

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