Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Is there a way to paste code and find an image of it?

Hi, I was wondering if there is a way to paste random text into an image sort of thing, like coding random things into an image (Like 4 bytes for a pixel, convert that into image format). For example, the source code for a png file would be garbled text if viewed in notepad, could I paste that in somewhere and turn it into an image?

Update:

All I can find is HTML Linking, not the thing I want.

1 Answer

Relevance
  • Anonymous
    5 years ago

    Yes you can. Just change the file extension to .png and open it in a photo viewer or paint package.

    However, unless the file header and packet headers are correct, you won't end up with a valid image file that the program will open.

    You can find details of the png file format specification here: https://en.wikipedia.org/wiki/Portable_Network_Gra...

    You'd be far better using a Hex editor (such as HxD) that allows checksum completion and CRC creation. For a first attempt, you may find it easier to create an uncompressed palettes .bmp file; since the pixel encoding is far more linear.

Still have questions? Get your answers by asking now.