-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
IImage.AsBytes() takes float quality 0..1 but complains about quality not being 0..100 when 50 is entered #12158
Comments
@drasticactions @mattleibow @Redth |
@janseris The code has since moved into the MAUI repo, so none of those issues are probably being triaged. I moved it for you. |
@mattleibow @Redth We might want to put a note or something on the Maui.Graphics repo to let people know of this change. |
@drasticactions Thank you. Could you please also move my 2 other issues from the Maui.Graphics repo to MAUI? |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
#13902 |
Description
Probably just the exception message is wrong.
When calling image.AsBytes for a jpg image with quality
50
, the following code is executed:but it outputs:
**Java.Lang.IllegalArgumentException:** 'quality must be 0..100'
I don't know if Windows is affected because Windows cannot load IImage at all currently.
Steps to Reproduce
export IImage on Android
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11 (API 30)
Did you find any workaround?
use quality / 100f -> 0..1
Relevant log output
No response
The text was updated successfully, but these errors were encountered: