IImage.AsBytes() takes float quality 0..1 but complains about quality not being 0..100 when 50 is entered
See original GitHub issueDescription
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
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Quality of a saved JPG in C# - Stack Overflow
I made a small C# app to create an image in .jpg format. pictureBox.Image.Save(name,ImageFormat.Jpeg);. The image is succesfully created. I ...
Read more >Could not allocate tensor with 377487360 bytes. There is ...
Stable diffusion crash, after generating some pixel and appear error : Could not allocate tensor with 377487360 bytes. There is not enough GPU ......
Read more >Performance Improvements in .NET 7
NET 7 is fast. Really fast. This post deep-dives into hundreds of performance improvements that contributed to that reality.
Read more >PyMuPDF Documentation
PyMuPDF is an enhanced Python binding for MuPDF – a lightweight PDF, XPS, and E-book viewer, renderer, and toolkit, which is maintained and ......
Read more >Jython Scripting Examples
But it is currently beta quality, and the Python language does not work properly due to bugs. Once this issue is fixed, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/dotnet/maui/issues/13902 https://github.com/dotnet/Microsoft.Maui.Graphics/issues/422 These problem isnt being solved ? any updates ?
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.