[web API] rotation not available with image lists #2209

Open
opened 2026-10-05 01:09:51 +02:00 by adam · 0 comments
Owner

If you want to make a layout for your images that involves the heights and widths then lists like pwg.categories.getImages, pwg.tags.getImages, etc., do not return the rotation value so the height and width could be reversed but it's impossible to know.

This is a simple fix of just adding the 'rotation' to the arrays that select values from the queried $row.

If you want to make a layout for your images that involves the heights and widths then lists like `pwg.categories.getImages`, `pwg.tags.getImages`, etc., do not return the `rotation` value so the `height` and `width` could be reversed but it's impossible to know. This is a simple fix of just adding the `'rotation'` to the arrays that select values from the queried `$row`. <!-- github-sync-id:4277946979 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2209