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

Can't provide just one keyword argument to save #36

Open
daveliepmann opened this issue Nov 21, 2017 · 0 comments
Open

Can't provide just one keyword argument to save #36

daveliepmann opened this issue Nov 21, 2017 · 0 comments

Comments

@daveliepmann
Copy link

I get an IllegalArgumentException when I attempt to use imagez's save function with exactly one keyword argument.

Example

I require version 0.12.0 of the library with [mikera.image.core :as imgz] and have the image and file system path defined as img and path respectively.

Specifying no keyword arguments with (imgz/save img path) works fine.

Specifying both keyword arguments with (imgz/save img path :quality 0.5 :progressive false) or (imgz/save img path :quality 0.5 :progressive nil) also work fine.

However, (imgz/save img path :quality 0.5) causes:

Unhandled java.lang.IllegalArgumentException
No value supplied for key: [:quality 0.5]

and (imgz/save img path :progressive false) causes:

Unhandled java.lang.IllegalArgumentException
No value supplied for key: [:progressive false]

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