I’ve got Ubuntu on my 2015 MacBook that worked out of the box except dedicated/integrated graphics switcher and the webcam. I also installed Windows which Apple puts out official drivers for. It’s just a computer, you can plug in a USB drive and install other operating systems just the same as any other laptop.
GIMP opens HEIC and WEBP files and it’s available on all operating systems.