Thanks, I will try it,
Edit: But how can I create a shortcut with the encoding function in fotos app?
Ah, ok, I guess you’re new to the Shortcuts app then. The shortcuts are a set of instructions that you put together in the Shortcuts app itself. In other words, the shortcuts are created with the Shortcuts app and once saved they’ll be available in other apps... like Photos.
So you need to start the Shortcuts app and tap “+ Create Shortcut”. Next insert the instructions as shown above (if they don’t show use the search feature on the top left of the screen). Finish by saving the newly created shortcut.
Next you should be able to access it within the Photos app as described on my previous post.