Skip to content

Feature Request: Support maintaining original aspect ratio with max dimension scalingΒ #65

@smithereensarr

Description

@smithereensarr

Hi! πŸ‘‹
I noticed that photo_manager library supports getting photos with automatic scaling while maintaining the original aspect ratio by specifying a maximum dimension. For example:

// photo_manager supports this
final thumbnailData = await asset.thumbnailDataWithOption(
  ThumbnailOption.ios(
    size: ThumbnailSize.square(maxDimension),
    resizeContentMode: ResizeContentMode.fit, // maintains aspect ratio
  ),
);

Currently, insta_assets_picker only supports fixed crop ratios (like 1:1, 4:5) which forces users to crop their images to specific aspect ratios.

Would it be possible to add this feature? Perhaps as an additional option in InstaAssetCropDelegate or a new configuration parameter?
Thanks for your great work on this library! πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions