In other words, everything I use to generate images also works in the browser. This package provides us a Node.js based implementation of the Canvas API that we know and love in the browser. The banner is a PNG image, and to keep the post focused on the subject (“how to create and save an image with Node.js and Canvas”) I’ll skip some parts.Īlso, there are many different ways of doing what I did, here’s just one way.įirst of all, what npm packages do we need? So after stumbling upon a nice inspiration for a banner image, I decided to make a custom banner for each of my blog posts. ![]() I’ve had this thought of programmatically generating them since I saw Indie Hackers generating those images for forum blog posts (a great idea): There’s no way I can make like 500 banner images at hand. It’s the best way to protect your data and is the fastest solution also. ![]() By creating an image, your entire system state, including the OS and data files, is captured like a snapshot and can be reloaded at any time. There’s a problem: I stopped making those custom banner images a long time ago, and most of my posts don’t have a banner. A good way to have both things taken care of at once is to create an image of your hard drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |