fix(imagor): width-only scaling instead of fit-in box for aspect-ratio-preserving folders #51

Merged
csaeum merged 1 commit from fix/imagor-width-only-scaling into main 2026-08-09 19:22:08 +00:00
Owner

Closes #50

ImagorUrlBuilder::build() skaliert bei keepAspectRatio=true-Ordnern jetzt nur noch nach
Breite (Wx0) statt eine feste fit-in/WxH-Box zu erzwingen — analog zu Shopwares eigenem
Remote-Thumbnail-Fallback-Pattern (z-shopware.yaml, kein {height} im Pattern). Behebt die
falsche Darstellung von Bildern, deren Seitenverhältnis stark von der konfigurierten
Ordner-Thumbnail-Größe abweicht (live verifiziert: Hochformat-Foto in Querformat-Ordner).

keepAspectRatio=false-Ordner (Issue #47) bleiben unverändert beim harten WxH-Zuschnitt.

Live getestet: 25/25 Unit-Tests grün.

Closes #50 `ImagorUrlBuilder::build()` skaliert bei `keepAspectRatio=true`-Ordnern jetzt nur noch nach Breite (`Wx0`) statt eine feste `fit-in/WxH`-Box zu erzwingen — analog zu Shopwares eigenem Remote-Thumbnail-Fallback-Pattern (`z-shopware.yaml`, kein `{height}` im Pattern). Behebt die falsche Darstellung von Bildern, deren Seitenverhältnis stark von der konfigurierten Ordner-Thumbnail-Größe abweicht (live verifiziert: Hochformat-Foto in Querformat-Ordner). `keepAspectRatio=false`-Ordner (Issue #47) bleiben unverändert beim harten `WxH`-Zuschnitt. Live getestet: 25/25 Unit-Tests grün.
Width and height for remote thumbnails come from the media folder's configured
thumbnail sizes, not the actual image's aspect ratio. Forcing a fit-in/WxH box
shrank strongly mismatched images (e.g. portrait photos in landscape-configured
folders) down to a fraction of the requested size. Scaling by width only (Wx0)
matches Shopware's own remote-thumbnail fallback pattern and avoids the issue
regardless of how far the image's aspect ratio deviates from the folder's
configured box.

Closes #50
csaeum merged commit 6ad44e66ae into main 2026-08-09 19:22:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SW-Plugins/wsc_swplugin_aiseotools!51
No description provided.