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.
- 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.
- Frontend: HTML, CSS, JavaScript (Vanilla)
- Backend: Python (Flask)
- Image Processing: Pillow (Python Imaging Library)
-
User Interface:
- The user selects between two options: Convert Format or Make Sticker.
- An image file is selected using a file input form.
-
Upload & Processing:
- Upon form submission, the image is sent as
multipart/form-datavia aPOSTrequest 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
.pngwith transparency preserved.
- Upon form submission, the image is sent as
-
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.
- Clone the repository:
git clone https://github.com/Ariyan-25/Formify.git cd Formify