You shouldn’t manually modify files in the main Nextcloud storage. You can move stuff that you want to modify on a local folder (and use it as external storage in Nextcloud), and then you can run all scripts you like to modify these files.
You just move the files into a different local folder of the server and you can then do the modifications on the server directly. No need to download them.
I think it would be cool to have an image manipulation app. In elFinder is a nice option for resize, cut and rotate images. Sorry. Screenshot in german.
@DarkknightAK
The app https://apps.nextcloud.com/apps/imageconverter can not solve the problem. I think it would be nice if there is an app for image manipulations. I think the needed php functions are available and for programmers it is easy to implement. Ideas can be found e.g. in elFinder (see screenshot above).
Yes you are right, this is currently not supported.
This app could be definitely extended to support other file types apart from HEIC like JPEGXL, but generic image manipulation like rotation or scaling is not something I want to add.