This is a node script that generates the transparent PNGs found on the Trends With Benefits website. It has a very specific use case.
This script relies heavily on Jimp, a terrific JavaScript-based image manipulation tool.
You want to use this? OK. Here's how.
- node (I use nvm to install and manage node versions)
- Clone the repo:
git clone https://github.com/gabedanon/twb-transparentizer
- Install dependencies:
npm install
oryarn
if you use yarn - Add image(s) you'd like to convert to the
in/
folder - Run
node index.js
- Voilà! Converted images are output to the
out/
folder