A Node.js app that reads a list of names from a text file, draws each name on an image using a specific font, and saves the resulting image as a new file.
- Clone the repository:
git clone https://github.com/SkroooB/drawnamesjs.git
- Install the dependencies:
npm install
- Customize the app by modifying the
names.txt
,input.jpg
, andcairo.tff
files - Run the app:
npm start
The app uses the canvas
module to draw the text on the image. The font can be customized by replacing the cairo.tff
file with another font file. The text placement can be customized by modifying the x and y coordinates passed to the fillText
method.
The app can also generate multiple images from a list of names by looping through the names and creating a new image for each name.
This project is licensed under the MIT License - see the LICENSE
file for details.
If you have any questions or feedback, feel free to contact me at [email protected].