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

scale argument does not work with values smaller than 1 (to make image smaller) #13

Closed
daattali opened this issue Sep 13, 2024 · 4 comments

Comments

@daattali
Copy link

This is a duplicate of #10 but worded more clearly.

The scale argument seems to work with any value greater than 1, but if I want to make the resulting file smaller by using a value of 0.9 or 0.5 for example, the resulting file is a blank canvas.

@pvictor
Copy link
Member

pvictor commented Sep 17, 2024

Currently scale parameter is expected to be an integer, I'll see if we can update the code to use a floating number.

@daattali
Copy link
Author

It seems to work with non-integer values above 1. 1.1, 1.5 both work, but 0.9 doesn't

@pvictor
Copy link
Member

pvictor commented Sep 18, 2024

Scale argument now accept floating numbers.

@daattali
Copy link
Author

Verified!

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

2 participants