Skip to content

Client side image resize and max width problem #1875

@flipzoom

Description

@flipzoom

Short description of the issue

If a maximum width is defined for an image field and the resize mode is set to "Use client-side resize when possible" and a portrait image is uploaded in this field, the maximum width is applied to the height even though the swap min/max option for portrait images is deactivated. This does not happen in server-side resize mode.

Expected behavior

The maximum width should also be applied to the width of portrait format images if swap min/max has not been explicitly activated.

Actual behavior

The maximum width is applied to the height for portrait format images, but only in mode "client-side resize"

Optional: Screenshots/Links that demonstrate the issue

image
image

Setup/Environment

  • ProcessWire version: 3.0.229

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions