The `pwg.image.rotate` API method deletes representatives and updates their URLs in the database so that the server knows that it should recreate them. In principle, URLs of the type: `https://…/_data/i/upload/2024/02/17…` are replaced with `https://…/i.php?/upload/2024/02/17…`. But is this always the case?

When called, `pwg.image.rotate` returns the JSON {"stat":"ok","result":true} after successfully rotating a photo. This JSON does not contain the modified sizes, nor the new URLs. 

A third party app calling `pwg.image.rotate` obviously knows how the width and height have been changed and how to rotate thumbnails already in cache. But it may not know the URL of thumbnails not yet in cache unless it reloads all image data by calling `pwg.images.getInfo` to retrieve all addresses.

To reduce network accesses (battery consumption) and speed up third party apps, I would like that `pwg.image.rotate` also returns the width, height and URL of all thumbnails.
[API] pwg.image.rotate not returning sizes and thumbnail URLs
This is a GitHub Issue
repo:Piwigo
owner:Piwigo
Title : [API] pwg.image.rotate not returning sizes and thumbnail URLs
Issue date:

--- start body ---
The `pwg.image.rotate` API method deletes representatives and updates their URLs in the database so that the server knows that it should recreate them. In principle, URLs of the type: `https://…/_data/i/upload/2024/02/17…` are replaced with `https://…/i.php?/upload/2024/02/17…`. But is this always the case?

When called, `pwg.image.rotate` returns the JSON {"stat":"ok","result":true} after successfully rotating a photo. This JSON does not contain the modified sizes, nor the new URLs. 

A third party app calling `pwg.image.rotate` obviously knows how the width and height have been changed and how to rotate thumbnails already in cache. But it may not know the URL of thumbnails not yet in cache unless it reloads all image data by calling `pwg.images.getInfo` to retrieve all addresses.

To reduce network accesses (battery consumption) and speed up third party apps, I would like that `pwg.image.rotate` also returns the width, height and URL of all thumbnails.
--- end body ---
