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

> There might be something wrong with the version of pillow. Try this : border=(0, 0, padw, padh) -> border=20 #187

Open
bea-CC opened this issue Nov 7, 2021 · 3 comments

Comments

@bea-CC
Copy link

bea-CC commented Nov 7, 2021

There might be something wrong with the version of pillow. Try this : border=(0, 0, padw, padh) -> border=20

Thank you very much, I solved it.
But I don't know why "img = ImageOps.expand(img, border=(0, 0, padw, padh), fill=0)" can run
but "mask = ImageOps.expand(mask, border=(0, 0, padw, padh), fill=0)" can not?

Originally posted by @cy998412 in #184 (comment)

@bea-CC
Copy link
Author

bea-CC commented Nov 7, 2021

border=20 It's ok,
but I don't understand why?

@yao123yuhui
Copy link

i do this ,but i can't solve the problem

@simplystart-from-begining

我将pillow版本降为6.x版本解决这个错误了

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

3 participants