Depending upon how enthusiastic you are at writing your own - you can use the image analysis features built into the Wolfram Language.
This is used in the Image Identification Project which aims to improve machine vision and learning, although that project won't help in your use case.
There is a StackExchange site dedicated to the use of Wolfram. They ...
I answered a similar question here what it essentially boils down to is, if you need more detail in an image, you need to get the information from somewhere.
The existing answer mentions photoshop which is one option. another option could possibly be to ask the person who took the photo to retake it with less blur or use a scanner to capture the image ...
Taking a small image (less pixels) and scaling it up (to an image with more pixels) requires adding more information to the image.
Your options for doing this depend on whether or not this information is available and how you plan to fill in this information (which can depend on where you got the image).
From the internet
If you found the image on the ...
In researching the same thing for the same reason on the same system I've discovered:
Dolphin file manager: https://apps.kde.org/dolphin
Geeqie, mentioned here
After installing exiftool sudo apt-get install -y exiftool I can ...