Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

crop first, resize after #1

@nikravi

Description

@nikravi

Hello,

First, thank you for this great lib.

The code I have is this:

BOSImageResizeOperation* op = [[BOSImageResizeOperation alloc] initWithImage:image];
[op resizeToFitWithinSize:CGSizeMake(240.f, 240.f)];
[op cropToAspectRatioWidth:1 height:1]; 

I want to end up having one image, squared, 240x240. But the images I get are custom size 135x135, 161x161.. this is because in the lib the resize happens before crop..
I would like to crop first, at 1:1, or 16:9, and then to resize..

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions