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

fix the photo upload issue in object detection app #691

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

yangcao77
Copy link
Contributor

This PR is to fix the issue while uploading a photo:

cannot write mode RGBA as JPEG

JPG does not support transparency - RGBA means Red, Green, Blue, Alpha - Alpha is transparency.

The Image class has a method convert which can be used to convert RGBA to RGB - after that it will be able to save as JPG.

@yangcao77 yangcao77 changed the title fix the photo upload issue fix the photo upload issue in object detection app Jul 24, 2024
@yangcao77
Copy link
Contributor Author

@MichaelClifford @rhatdan @Gregory-Pereira
May I get a review on this PR? Thanks!

@rhatdan
Copy link
Member

rhatdan commented Jul 25, 2024

LGTM

@rhatdan rhatdan merged commit a508f36 into containers:main Jul 25, 2024
1 check passed
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