Web2Img is a free tool that allows you to group files from the same website into a single image and extract them through a background browser script, so that they can be used on free image hosting sites such as Flickr, thus saving costs.
While it doesn’t eliminate the need for your own hosting service, it does eliminate the need for a service with lots of storage space.
It is important to keep in mind that these types of tools are only useful for a static websitethat is, a website that is not updated with new content once it has been created. In other words, once the website has been converted into an image, no new content can be created. At the same time, using this tool does not mean that you can do without web hosting, although it does make it possible to use free services (with little storage space), since you only need to upload a couple of files with scripts that have very little weight.
Although, at first glance, it may seem like a complex process, using Web2Img is very simple. You just need to access its official website, select the folder containing the directory of the website you want to compress and upload it to the tool. At this point, an image containing all the encoded files is automatically generated.
Next, simply upload this image to any free image hosting service, such as Flickr or Imgur, and copy the image hosting URL created for you by the service.
To finish, simply paste the URL into Web2Img so that two script files are generated which should be saved as “404.html” and “x.js” and are the files that will be uploaded to your own hosting server.
Once done, users accessing the website will do so as if they were accessing a normal website, without noticing that they are accessing through an image.
Web2Img and service workers
This is made possible by so-called “service workers”, which are scripts that browsers run in the background, separate from web pages, and which open the door to functions that do not require a web page or site or user interaction.
Today, service workers are what facilitate functionality such as push notifications and background synchronization of certain services and applications. These scripts also have the ability to intercept and handle network requests, including programmatically managing a cache of responses.