-
Notifications
You must be signed in to change notification settings - Fork 21
Setting size and quality options when picking #25
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
Comments
It's definitely not in my plans. But if someone does I won't mind. Unfortunately I don't have much time. And I have to get my priorities right |
While we are at it, getting it rotated to the origin set in the exif info wouldn't hurt. |
Do you have problems with origin image rotation in this plugin? |
Well, it's not a huge problem. But if I just take the photo bytes and show it on screen, it might show with the wrong rotation. Perhaps some basic image manipulation of byte[] images could be something for the CommunityToolkit. |
I had no problem with the rotated image. If you can provide a description of how to reproduce this. I'll try to fix it |
I think it's camera app dependent. I'm using Piel 4 (Android) with default camera. |
On my android (Pixel 4) the following code draws the image upside down.
on iOS it doesn't rotate at all. And if trying to rotate with SkiaSharp, the codec will end up being null. This is not the case if using PickPhotoAsync from Xamarin.Essentials.
|
@dimonovdd : Were you able to reproduce this? |
Regarding what I wrote about codec being null for iOS, it seems to have been fixed in some way. At least it works fine for me in iOS as well now. Width, Height, Quality and orientation are still things i'd like to see! =) |
Do you have any ideas? how to implement it for all platforms? Have you tried using MetadataExtractor? |
Hi guys,
|
@Adam-Langley Hi. You can create a PR. But keep in mind that using |
I could sure use the compression of CrossMedia.Current.PickPhotoAsync that I used with Xamarin. I am using MediaGallery in Maui but the photos on iOS are about 10x larger than they need to be and cause my data files to be huge. If the CrossMedia code were available on github I would be tempted to try and port the compression feature to the MediaGallery repo. I don't see it though. Can someone point it out? |
Summary
When using the legacy CrossMedia plugin, you have the ability to define image max width/height and compressionQuality. Are there any plans to implement this kind of functionality?
API Changes
Perhaps looking at CrossMedia.Current.PickPhotoAsync could give some inspiration
The text was updated successfully, but these errors were encountered: