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

error on save jpg files with alpha channel #1

Open
rokopi-byte opened this issue Aug 15, 2019 · 0 comments
Open

error on save jpg files with alpha channel #1

rokopi-byte opened this issue Aug 15, 2019 · 0 comments

Comments

@rokopi-byte
Copy link

Hi,
I'm looking at xml_parse.py to convert xml files generated using labelme to masks. However it's not clear to me why do you convert the combined mask image to jpg format, which actually don't support alpha channel, leading to this error:
OSError: cannot write mode RGBA as JPEG
If I remove that conversion everything is fine.. am I wrong? Thanks

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