CoolFace
Apppublic

jasvir-singh1021/Transparent-Touch

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

๐Ÿ–ผ๏ธ Overlay Image Composer

A Gradio app for overlaying one image over another with adjustable position, scale, transparency, and optional flip or grayscale effects.

Ideal for creating creative image compositions, watermarked visuals, and basic graphics design โ€” all from the browser!


๐Ÿš€ Features

  • โ€”๐Ÿ“ค Upload background and overlay images
  • โ€”โœจ Adjust overlay position (X/Y)
  • โ€”๐Ÿ” Resize overlay using scale slider
  • โ€”๐Ÿ•ถ๏ธ Control overlay transparency
  • โ€”๐Ÿ”„ Flip the overlay image horizontally
  • โ€”โšซ Convert overlay to grayscale
  • โ€”๐Ÿ’พ Download the final composed image

๐Ÿ“ฆ Requirements

Install required libraries:

bash
pip install -r requirements.txt

requirements.txt

gradio
Pillow>=10.0.0

โ–ถ๏ธ Running the App

Run the app locally:

python app.py

Once running, you will see something like:

Running on local URL: http://127.0.0.1:7860

Open the link in your browser.
๐ŸŒ Hosting on Hugging Face Spaces

    Create a new Space on Hugging Face Spaces

    Select Gradio as the SDK

    Upload:

        app.py

        requirements.txt

    Click "Commit" and wait for the Space to build and deploy

๐Ÿ“ธ How to Use

    Upload a background image (base layer)

    Upload an overlay image (top layer)

    Adjust the X/Y position, scale, and transparency sliders

    Optionally flip or grayscale the overlay

    Click Generate Composite

    Click Download to save the final image

๐Ÿ“ Example Use Cases

    Creating simple posters or memes

    Adding semi-transparent logos/watermarks

    Designing collages or layered illustrations

    Quick visual experiments for digital artists

๐Ÿ“„ License

MIT License
โค๏ธ Credits

Built using Gradio and Pillow
Developed by Your Jasvir Singh
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference