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.
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.
<!-- github-sync-id:2252559318 -->
The mentioned error is encountered with the version 11.0.a of the rotateImage plugin.
The mentioned error is encountered with the version 11.0.a of the [rotateImage plugin](https://piwigo.org/ext/extension_view.php?eid=578).
<!-- github-comment-id:2068133032 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The
pwg.image.rotateAPI 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 withhttps://…/i.php?/upload/2024/02/17…. But is this always the case?When called,
pwg.image.rotatereturns 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.rotateobviously 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 callingpwg.images.getInfoto retrieve all addresses.To reduce network accesses (battery consumption) and speed up third party apps, I would like that
pwg.image.rotatealso returns the width, height and URL of all thumbnails.Hello
Try add plugin rotateImage and test it
I look this
https://www.php.net/manual/fr/function.imagerotate.php
The mentioned error is encountered with the version 11.0.a of the rotateImage plugin.