Generate 90s MS Wordart from Node or Docker
A node script and docker container for generating transparent PNGs of 90s MS Wordart.
Built on css3wordart written by Ari Rizzitano. Inspired by pythonWordArt written by zorbaproject. Also inspired by https://makewordart.com going offline. I figured it’s time for everyone to generate their own Wordart locally 🙂\
The node script parses command line arguments and uses regex to replace text in a template HTML file that will render the wordart when loaded in a browser. Puppeteer is used to load a headless version of Google Chrome and take a screenshot of the page with a transparent background. That screenshot is then trimmed by GraphicsMagick and saved to an output directory.\
To Wordart PNGs using nodejs:
npm install
npm test
to see all design examplesnode .\wordartOnDemand.js -w "Hello World" -a rainbow
to generate a specific wordartSee usage with --help
(-h
) to see all supported styles.
⚠ Docker images are experimental. See the issues section for more information. It’s best to use the NodeJS method for now.
If you don’t want to install Node/NPM (or you like Docker better), you can generate Wordart PNGs using Docker. Note that this Docker image will take up ~1 GB, since it needs to download Chromium to render the image in a browser.
You can utilize the prebuilt Docker image that is hosted on Docker Hub:
https://hub.docker.com/repository/docker/toastymallows/wordart-on-demand
docker run --rm -v ~/wordart/out:/wordart/out toastymallows/wordart-on-demand:latest -w "Hello World" -a rainbow
Your generated PNG should be located at /home/<user>/wordart/out
(\\wsl$\<WSL 2 OS>\home\<wsl2 user>\wordart\out
on Windows via WSL 2.)
If you’d prefer, you can build the Docker image manually.
cd /mnt/<repo clone directory>
docker build -t wordart .
docker run --rm -v ~/wordart/out:/wordart/out wordart:latest -w "Hello World" -a rainbow
\\wsl$\<WSL 2 OS>\home\<wsl2 user>\wordart\out
(accessible from Windows Explorer)docker build -t wordart .
docker run --rm -v ~/wordart/out:/wordart/out wordart:latest -w "Hello World" -a rainbow
/home/<user>/wordart/out
Try it out and let me know! PRs welcome 🙂
There are some issues with Docker images:
For now, if you want accurate wordart, it’s best to use the NodeJS approach.\