This project converts text input into a handwritten style image using the pywhatkit library. The generated handwriting image is saved as a PNG file with customizable color options.
- Text to Handwriting Conversion: Converts user-input text into a handwritten image.
- Customizable Handwriting Color: Allows setting the handwriting color using RGB values.
- Image Output: Saves the generated handwriting as a PNG file.
- Python
- Text Processing
- Image Generation
- Python Libraries (
pywhatkit)
- Clone the repository:
git clone https://github.com/yourusername/text-to-handwriting-project.git
- Navigate to the project directory:
cd text-to-handwriting-project - Install the required package:
pip install pywhatkit
- Run the script:
python text_to_handwriting.py
- Enter the text you want to convert when prompted:
Enter text to be converted: This is a sample text. - The script will generate a handwritten image with the specified color and save it as
demo3.png.
import pywhatkit as pw
# Prompt user to enter text
txt = input("Enter text to be converted:")
# Convert text to handwriting with specified color (red)
pw.text_to_handwriting(txt, "demo3.png", [255, 0, 0])
# Indicate the end of the script
print("END")- Python Software Foundation
pywhatkitlibrary for text-to-handwriting conversion
This project is licensed under the MIT License. See the LICENSE file for details.