Skip to content

Lakshay-13/Code-Image-Generator

Repository files navigation

Code to Image Converter

License Latest Release Open Issues Deployed on Streamlit

Code to Image Converter is an inventive and visually-appealing Streamlit application that converts code snippets into customizable images.

Application Screenshot

Features

  • 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

Installation

  1. Clone the repository:

git clone https://github.com/Lakshay-13/Code-Image-Generator.git

  1. Change the directory:

cd Code-Image-Generator

  1. Install the required dependencies:

pip install -r requirements.txt

  1. Run the Streamlit application:

streamlit run app.py

  1. Open the application in your web browser by navigating to the URL provided by Streamlit.

Usage

  1. Enter your code snippet in the "Enter your code here:" text area.
  2. Adjust the font size, padding, border width, gradient size, corner radius, and scaling factor using the sliders
  3. Select text color, background color, and gradient color using the color pickers
  4. Choose a font from the dropdown menu or upload a custom font file
  5. Click the "Generate Image" button to create the image
  6. Download the image by entering a file name and clicking "Save Image"

Contributing

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.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published