Code to Image Converter
Code to Image Converter is an inventive and visually-appealing Streamlit application that converts code snippets into customizable images.
- Transform code snippets into images
- Customize font size, padding, border width, gradient size, corner radius, and scaling factor
- Choose text color, background color, and gradient color
- Select from predefined fonts or upload custom font files
- Clone the repository:
git clone https://github.com/Lakshay-13/Code-Image-Generator.git
- Change the directory:
cd Code-Image-Generator
- Install the required dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run app.py
- Open the application in your web browser by navigating to the URL provided by Streamlit.
- Enter your code snippet in the "Enter your code here:" text area.
- Adjust the font size, padding, border width, gradient size, corner radius, and scaling factor using the sliders
- Select text color, background color, and gradient color using the color pickers
- Choose a font from the dropdown menu or upload a custom font file
- Click the "Generate Image" button to create the image
- Download the image by entering a file name and clicking "Save Image"
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Be sure to update the tests as appropriate.