Some of the photos I take, to get the subject large enough in the frame I have to use electronic zoom. I don’t have money for a nice zoom lens. I tried using an adapter for one of Dad’s zoom lenses but it sometimes gives me issues. So I use a 4x zoom - which basically cuts off 3/4 of my sensor then expands the picture to full size (I guess by some sort of averaging math to create the discarded pixels)
Is there anything I can do in post to get some of that resolution back - even if it made up. I am a Linux user, so a workflow in GIMP would be great, or any other Free/Libre software you might suggest?
Short answer: No. Garbage in, garbage out. CSI-style zoom-enhance is pure fiction.
There are AI tools that will hallucinate more pixels, if that’s what you want, but that’s just plausible lies based on prior data.
If you’re using a non-phone camera, I don’t think there’s any upsides to using digital zoom. Just take the photo full res (and raw if you can) and then do the cropping/zooming in gimp, etc. Then you have full control of the cropping, and you might even be able to use a better upscaling algorithm than the camera’s built in.
This is not true on phones because when you zoom in digitally the phone does something called super-resolution imaging where it takes a whole sequence of photos and then stacks them to try and fill in the missing information. That tech hasn’t caught up to dedicated cameras yet.
What camera are you using?
You can do super resolution in post if you take multiple photos of a still subject. They do this in astrophotography.
You will never get those pixels back. They are gone. You can, however, create new pixels. They won’t be as good as the originals, but in some cases, they’ll be good enough. An open source AI/ML interpolation tool I have used with decent results is called Upscayl. There are AppImages, Flatpaks, and many Linux packages available to download.