fluttercandies / flutter_photo_manager

A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
https://pub.dev/packages/photo_manager
Apache License 2.0
667 stars 301 forks source link

[Question] Filter by aspect ratio natively #605

Open lyio opened 2 years ago

lyio commented 2 years ago

Expect

In my use case I need to filter images by their aspect ratio (width / height) and only display images that satisfy a specific ratio constraint (width / height = 2).

I can, of course, apply this filtering on the dart side, after getting all images but this messes with the pagination and seems wasteful.

Is there a way to achieve this with the existing filtering options and if not, is there a way to implement this feature?

AlexV525 commented 2 years ago

This might be discussed before. AFAIK the MediaStore doesn't support such filter options or predication, so we didn't figure out a proper way to implement this feature.