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

Use ImageOps.scale to fit image to width #2

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Use ImageOps.scale to fit image to width #2

merged 1 commit into from
Jun 18, 2021

Conversation

phy1729
Copy link
Contributor

@phy1729 phy1729 commented Jun 18, 2021

If an image is fairly small (between 80 and 159 pixels wide), the current scaling code will set ipix to 1 and just chop off the right portion of the image. Use ImageOps.scale instead to let the library do the scaling.

@xfnw xfnw merged commit 40727c6 into xfnw:main Jun 18, 2021
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

Successfully merging this pull request may close these issues.

2 participants