Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,5 +9,92 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
short_description: Transparent Touch Overlay Image
|
| 11 |
---
|
|
|
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 9 |
pinned: false
|
| 10 |
short_description: Transparent Touch Overlay Image
|
| 11 |
---
|
| 12 |
+
# πΌοΈ Overlay Image Composer
|
| 13 |
|
| 14 |
+
A Gradio app for overlaying one image over another with adjustable **position**, **scale**, **transparency**, and optional **flip** or **grayscale** effects.
|
| 15 |
+
|
| 16 |
+
Ideal for creating creative image compositions, watermarked visuals, and basic graphics design β all from the browser!
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## π Features
|
| 21 |
+
|
| 22 |
+
- π€ Upload background and overlay images
|
| 23 |
+
- β¨ Adjust overlay position (X/Y)
|
| 24 |
+
- π Resize overlay using scale slider
|
| 25 |
+
- πΆοΈ Control overlay transparency
|
| 26 |
+
- π Flip the overlay image horizontally
|
| 27 |
+
- β« Convert overlay to grayscale
|
| 28 |
+
- πΎ Download the final composed image
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## π¦ Requirements
|
| 33 |
+
|
| 34 |
+
Install required libraries:
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
pip install -r requirements.txt
|
| 38 |
+
|
| 39 |
+
requirements.txt
|
| 40 |
+
|
| 41 |
+
gradio
|
| 42 |
+
Pillow>=10.0.0
|
| 43 |
+
|
| 44 |
+
βΆοΈ Running the App
|
| 45 |
+
|
| 46 |
+
Run the app locally:
|
| 47 |
+
|
| 48 |
+
python app.py
|
| 49 |
+
|
| 50 |
+
Once running, you will see something like:
|
| 51 |
+
|
| 52 |
+
Running on local URL: http://127.0.0.1:7860
|
| 53 |
+
|
| 54 |
+
Open the link in your browser.
|
| 55 |
+
π Hosting on Hugging Face Spaces
|
| 56 |
+
|
| 57 |
+
Create a new Space on Hugging Face Spaces
|
| 58 |
+
|
| 59 |
+
Select Gradio as the SDK
|
| 60 |
+
|
| 61 |
+
Upload:
|
| 62 |
+
|
| 63 |
+
app.py
|
| 64 |
+
|
| 65 |
+
requirements.txt
|
| 66 |
+
|
| 67 |
+
Click "Commit" and wait for the Space to build and deploy
|
| 68 |
+
|
| 69 |
+
πΈ How to Use
|
| 70 |
+
|
| 71 |
+
Upload a background image (base layer)
|
| 72 |
+
|
| 73 |
+
Upload an overlay image (top layer)
|
| 74 |
+
|
| 75 |
+
Adjust the X/Y position, scale, and transparency sliders
|
| 76 |
+
|
| 77 |
+
Optionally flip or grayscale the overlay
|
| 78 |
+
|
| 79 |
+
Click Generate Composite
|
| 80 |
+
|
| 81 |
+
Click Download to save the final image
|
| 82 |
+
|
| 83 |
+
π Example Use Cases
|
| 84 |
+
|
| 85 |
+
Creating simple posters or memes
|
| 86 |
+
|
| 87 |
+
Adding semi-transparent logos/watermarks
|
| 88 |
+
|
| 89 |
+
Designing collages or layered illustrations
|
| 90 |
+
|
| 91 |
+
Quick visual experiments for digital artists
|
| 92 |
+
|
| 93 |
+
π License
|
| 94 |
+
|
| 95 |
+
MIT License
|
| 96 |
+
β€οΈ Credits
|
| 97 |
+
|
| 98 |
+
Built using Gradio and Pillow
|
| 99 |
+
Developed by Your Jasvir Singh
|
| 100 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|