-
-
Notifications
You must be signed in to change notification settings - Fork 840
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
Image scaling and conversion is slow in iOS #2489
Comments
Does anyone know what the intrinsics story is for Vector4 in iOS for .NET 7/8 + ? We rely heavily on that type during resize. |
I think 17 seconds is way too much for this to be about Vector4 or intrinsics. Mono AOT is essentially broken for open generics code we use heavily, falling back to very slow interpreted (?) execution, see dotnet/runtime#71210 (comment). @JPfahl a comment/upvote on that issue may help to push them in order to have this fixed eventually. |
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.0.1
Other ImageSharp packages and versions
None
Environment (Operating system, version and so on)
iOS 16.5.1
.NET Framework version
7
Description
I am using the Maui MediaPicker to take pictures on an iPhone. I am trying to use ImageSharp to fix the problems with MediaPicker, specifically that it returns the image as a png and does not honor phone orientation. I receive an ~18mb png from the media picker. Sizing it to a width of 1920 and saving as a jpg ~350kb with the right orientation takes ~17 seconds. Is there anyway to improve the speed. You product does exactly what I need but the performance makes it unusable in this case.
Steps to Reproduce
Images
I can't provide an image because you don't accept anything over 10mb.
The text was updated successfully, but these errors were encountered: