Take a look iimage-mode: this is the standard solution for displaying images in a text buffer.
For example, given the following file:
int main (int argc, char **argv) {
return 0;
}
then the launch M-x turn-on-iimage-modeshould display image.pnginstead of its path.
, @user4815162342, ( , , )