First, Piwigo 14.3.0 is unable to rotate HEIC photos by default and the method `pwg.image.rotate` reports the string `[Image] unsupported file extension` which is not a JSON data. It should either manage HEIC photos or report a JSON including an error message because this is problematic for third party apps like the iOS and Android apps (another issue).

Here are the steps to reproduce the issue from the UI:
1. Add `'heic'` to `$conf['picture_ext']` with the LocalFiles Editor plugin for enabling HEIC photos rotations,
2. Choose a HEIC photo from the web UI,
3. Request a rotation, e.g. 90° clockwise,
4. Check the corresponding files in the `_data` and `upload` folders.

The original HEIC image located in the _upload_ folder is rotated as expected. But the thumbnail files located in __data_ are not deleted as the plugin does when dealing with JPEG files. The thumbnail shown on the web UI does not present the image rotated as expected. Force reloading the web page does nothing.
rotateImage plugin does not update thumbnails after rotating HEIC photo
This is a GitHub Issue
repo:Piwigo
owner:Piwigo
Title : rotateImage plugin does not update thumbnails after rotating HEIC photo
Issue date:

--- start body ---
First, Piwigo 14.3.0 is unable to rotate HEIC photos by default and the method `pwg.image.rotate` reports the string `[Image] unsupported file extension` which is not a JSON data. It should either manage HEIC photos or report a JSON including an error message because this is problematic for third party apps like the iOS and Android apps (another issue).

Here are the steps to reproduce the issue from the UI:
1. Add `'heic'` to `$conf['picture_ext']` with the LocalFiles Editor plugin for enabling HEIC photos rotations,
2. Choose a HEIC photo from the web UI,
3. Request a rotation, e.g. 90° clockwise,
4. Check the corresponding files in the `_data` and `upload` folders.

The original HEIC image located in the _upload_ folder is rotated as expected. But the thumbnail files located in __data_ are not deleted as the plugin does when dealing with JPEG files. The thumbnail shown on the web UI does not present the image rotated as expected. Force reloading the web page does nothing.
--- end body ---
