jasvir-singh1021 commited on
Commit
c30db11
Β·
verified Β·
1 Parent(s): 9fe71e3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -0
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