Skip to content

A simple web app to convert image formats or create sticker-ready images using Flask and Pillow.

Notifications You must be signed in to change notification settings

Ariyan-25/Formify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formify-Image format converter and sticker generator

Formify is a lightweight web application that allows users to convert image formats (e.g., JPG to PNG, PNG to GIF, etc.) or generate stickers by resizing uploaded images.

Features

  • Convert images between common formats: PNG, JPEG, GIF.
  • Generate sticker-ready images by resizing to standard dimensions.
  • Simple and intuitive browser interface built with HTML, CSS, and JavaScript.
  • Fast processing using Python's Pillow library on the backend.

Tech Stack

  • Frontend: HTML, CSS, JavaScript (Vanilla)
  • Backend: Python (Flask)
  • Image Processing: Pillow (Python Imaging Library)

How It Works

Data Flow

  1. User Interface:

    • The user selects between two options: Convert Format or Make Sticker.
    • An image file is selected using a file input form.
  2. Upload & Processing:

    • Upon form submission, the image is sent as multipart/form-data via a POST request to the Flask backend.
    • For conversion:
      • The backend receives the image and desired format.
      • The image is opened using Pillow, optionally converted to RGB (for JPEGs), and saved in the requested format.
    • For sticker generation:
      • The uploaded image is resized to 512x512 pixels to standardize the sticker format.
      • The image is saved as a .png with transparency preserved.
  3. Response & Display:

    • The server returns a JSON response containing the processed image's URL.
    • The frontend displays the converted image and provides a direct download link.

How to Run

  1. Clone the repository:
    git clone https://github.com/Ariyan-25/Formify.git
    cd Formify

About

A simple web app to convert image formats or create sticker-ready images using Flask and Pillow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published