A Python-based tool to convert plain text into handwriting-style images with customizable colors. Perfect for creating visually appealing notes, personalizing projects, or adding a unique touch to your content.
- Text to Handwriting: Converts input text into handwriting-style images.
- Customizable Colors: Choose your preferred handwriting color using RGB values.
- Error Handling: Ensures smooth execution with helpful error messages.
- Fallback Mechanism: Defaults to a predefined color if no custom color is specified.
- Python 3.6 or later
- Required Libraries:
pywhatkit
- Clone the repository:
git clone https://github.com/your-username/text-to-handwriting-converter.git
- Navigate to the project directory:
cd text-to-handwriting-converter - Install dependencies:
pip install -r requirements.txt
- Run the script:
python code1.py
- Enter the text you want to convert.
- Specify whether to use the default color or input a custom RGB color code.
Enter Your Text: Hello, this is a test.
Do you want to change the handwriting color? (yes/no): yes
Enter the color code as R,G,B (e.g., 255,0,0 for red): 0,128,255
Handwriting image successfully created as 'demo.png'
End
- Unable to Access PyWhatKit API: Check your internet connection or try again later.
- Invalid RGB Input: Ensure the color code is in the format
R,G,Bwith values between 0 and 255.
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the creators of the pywhatkit library for providing the handwriting API.