Steganography is nothing new. We've previously shared tools to hide text in images, but this time the idea isn't about security—it's about a more... efficient web hosting? That's where Web2Img comes in, an experiment that lets us hide an entire web page in an image. In other words, with Web2Img you can take advantage of services like Imgur and its direct alternatives to shift the cost of bandwidth onto free platforms.
While there are many free web hosting services, they all have specific limits that eventually affect any site's development. Self-hosting emerges as an alternative, but it's not a path everyone is willing to take. So, can we be more efficient?
One possibility is to interweave our pages with free platforms that focus on specific content. For example, Imgur is free for images, and you can ignore all its social component if you wish. The key is to hide an entire web page in an image... and that's Web2Img's job.
Web2Img: Hiding Web Pages in Images
Web2Img is an experiment by user EtherDream on GitHub. Through its main page you can integrate all the files of your website into a single image, then extract them with the help of a service worker at runtime. The final result for the visitor is completely transparent. The site loads normally, but the main hosting only keeps a couple of files. The heaviest part is stored in the image.
The process is divided into three steps: first you upload your files and get an image. Then you save a copy on Imgur or another similar service. The third step is to insert the image URL to generate the appropriate script. The files to save on your main hosting are two: 404.html (simplifies any interception), and the script itself, x.js. The video shows a Nintendo emulator as a demo, but the content type doesn't seem to be the limit here.
The restrictions appear in its FAQ: JavaScript must be enabled, the browser needs service worker support, not all content distribution networks work (CORS, empty referrer, and null origin are required)... and this can blow up overnight. Would you like to play with Web2Img anyway? Click below.
Official site: Click here