CoolFace
Apppublic

Vicky142/Certificate_Generator

sourceHugging Faceunknownupdated 1y agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Certificate Generator Application

A Streamlit-based tool for generating customized certificates from a template and a list of names.

Features

  • Upload an Excel file containing student names
  • Upload a custom certificate template
  • Visual editor to set text position on the certificate
  • Customize font, size, and color
  • Generate certificates for all names in batch
  • Download all certificates as a ZIP file

Installation

  1. 1.Clone this repository
  2. 2.Install required packages:
   pip install -r requirements.txt
  1. 1.Run the application:
   streamlit run app.py

Usage Instructions

1. Upload Files

  • In the sidebar, upload an Excel file (.xlsx or .xls) with student names in the first column
  • Upload a certificate template image (.png, .jpg, or .jpeg)

2. Adjust Text Position

  • Use the sliders to position the text box on the certificate template
  • The green rectangle shows where the text will be placed

3. Format Text

  • Enter a sample name for preview
  • Select a font from the dropdown
  • Adjust font size using the slider or +/- buttons
  • Choose a text color using the color picker

4. Generate Certificates

  • Click the "Generate Certificates" button
  • Download the ZIP file containing all generated certificates

Custom Fonts

To use custom fonts, place TTF or OTF font files in the same directory as the application. They will automatically appear in the font dropdown menu.

Troubleshooting

If you encounter any issues:

  • Make sure your Excel file has names in the first column
  • Check that your template image is in a supported format
  • Ensure you have the required dependencies installed---