Can modified metadata be saved to the original pictures in Mac Photos?

Is there a way to save info to the original file in the Mac Photos app?

Specifically, I add keywords to pictures in the Photos app and want to save them to the original file.

I know the point of Photos is to not modify the original, but if I ever want to use my pictures in another application, I want the keywords to be there.

I also know I can export the picture as "modified," but everytime a picture is exported, it degrades the quality.

In Lightroom, it's possible to do this since writing metadata doesn't modify/recompress the original image.

Original thread: https://forums.imore.com/threads/can-modified-metadata-be-saved-to-the-original-pictures-in-mac-photos.360253/