Skip to content

Please add ->isPortrait property to Pageimage objects #561

Open
@BernhardBaumrock

Description

@BernhardBaumrock

Often in designs we have to treat images differently if they are higher than wide. Code like this bloats templates and needs more cognitive power to understand:

if($img->height > $img->width) {
   ...
}

It would be great to have an "isPortrait" property:

if($img->isPortrait) {
   ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions