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

Changed the filling to inpaint #9

Merged
merged 2 commits into from
Jul 1, 2021
Merged

Changed the filling to inpaint #9

merged 2 commits into from
Jul 1, 2021

Conversation

edvsjo
Copy link
Owner

@edvsjo edvsjo commented Jun 30, 2021

Changed the functionality of pad_to_fill() to fill based on the image contents instead of the most common color. This should solve #6 . Does behave wierdly on Adidas-Terrex-Trail-LS-T-shirt_484421_48_extra7.jpg and other instances where the image extends both the top and bottom. It also somewhat slows down when there is a lot to paint in.

@magnunm magnunm self-requested a review June 30, 2021 12:40
Copy link
Collaborator

@magnunm magnunm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great now for images like Only-Carol-Dress_383296_65_extra1, very cool! 😄

I think this PR solves issue #6, the problem when the product goes outside both the top and bottom edge is a lot more complicated, so I think that should be a separate issue.

cropper.py Outdated Show resolved Hide resolved
cropper.py Outdated Show resolved Hide resolved
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