Skip to content

consider wp_constrain_dimensions for Limit Image Dimensions with max width/height  #676

@selul

Description

@selul

What problem does this address?

Right now seems like we are doing our own scaling procedure to keep the ratio when Limit Image Dimensions with max width/height is on.

What is your proposed solution?

I would suggest wp_constrain_dimensions like we do here https://github.com/Codeinwp/optimole-wp/blob/master/inc/url_replacer.php#L255C46-L255C69

Discovered this while looking on #675

Will this feature require documentation? (Optional)

No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureRequest for a new feature or functionality to be added to the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions