Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,6 @@ def home_page():
|
|
| 89 |
</script>
|
| 90 |
</head>
|
| 91 |
<body>
|
| 92 |
-
<div>
|
| 93 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 94 |
<h2>Square and Fill Image App</h2>
|
| 95 |
<p>Please select an option below:</p>
|
|
@@ -102,7 +101,6 @@ def home_page():
|
|
| 102 |
and
|
| 103 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 104 |
</div>
|
| 105 |
-
</div>
|
| 106 |
</body>
|
| 107 |
</html>
|
| 108 |
"""
|
|
@@ -138,7 +136,6 @@ def demo_page():
|
|
| 138 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 139 |
</head>
|
| 140 |
<body>
|
| 141 |
-
<div>
|
| 142 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 143 |
<h2>Square Image Demo</h2>
|
| 144 |
<p>Image will be squared with color filler where applicable.</p>
|
|
@@ -152,7 +149,6 @@ def demo_page():
|
|
| 152 |
and
|
| 153 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 154 |
</div>
|
| 155 |
-
</div>
|
| 156 |
</body>
|
| 157 |
</html>
|
| 158 |
"""
|
|
@@ -168,7 +164,6 @@ def application_page():
|
|
| 168 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 169 |
</head>
|
| 170 |
<body>
|
| 171 |
-
<div>
|
| 172 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 173 |
<h2>Square Image Application</h2>
|
| 174 |
<p>Upload a JPG or PNG image to square and fill with color padding.</p>
|
|
@@ -182,7 +177,6 @@ def application_page():
|
|
| 182 |
and
|
| 183 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 184 |
</div>
|
| 185 |
-
</div>
|
| 186 |
</body>
|
| 187 |
</html>
|
| 188 |
"""
|
|
@@ -223,7 +217,6 @@ async def upload_file(file: UploadFile = File(...)):
|
|
| 223 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 224 |
</head>
|
| 225 |
<body>
|
| 226 |
-
<div>
|
| 227 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 228 |
<h2>Image successfully squared!</h2>
|
| 229 |
<img src='data:image/jpeg;base64,{display_encoded_img}' width="512" height="512" />
|
|
@@ -235,7 +228,6 @@ async def upload_file(file: UploadFile = File(...)):
|
|
| 235 |
and
|
| 236 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 237 |
</div>
|
| 238 |
-
</div>
|
| 239 |
</body>
|
| 240 |
</html>
|
| 241 |
""",
|
|
|
|
| 89 |
</script>
|
| 90 |
</head>
|
| 91 |
<body>
|
|
|
|
| 92 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 93 |
<h2>Square and Fill Image App</h2>
|
| 94 |
<p>Please select an option below:</p>
|
|
|
|
| 101 |
and
|
| 102 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 103 |
</div>
|
|
|
|
| 104 |
</body>
|
| 105 |
</html>
|
| 106 |
"""
|
|
|
|
| 136 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 137 |
</head>
|
| 138 |
<body>
|
|
|
|
| 139 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 140 |
<h2>Square Image Demo</h2>
|
| 141 |
<p>Image will be squared with color filler where applicable.</p>
|
|
|
|
| 149 |
and
|
| 150 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 151 |
</div>
|
|
|
|
| 152 |
</body>
|
| 153 |
</html>
|
| 154 |
"""
|
|
|
|
| 164 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 165 |
</head>
|
| 166 |
<body>
|
|
|
|
| 167 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 168 |
<h2>Square Image Application</h2>
|
| 169 |
<p>Upload a JPG or PNG image to square and fill with color padding.</p>
|
|
|
|
| 177 |
and
|
| 178 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 179 |
</div>
|
|
|
|
| 180 |
</body>
|
| 181 |
</html>
|
| 182 |
"""
|
|
|
|
| 217 |
<link rel="stylesheet" href="/static/styles/w3.css">
|
| 218 |
</head>
|
| 219 |
<body>
|
|
|
|
| 220 |
<img class="banner" src="/static/images/banner.jpg" alt="Banner" width="100%">
|
| 221 |
<h2>Image successfully squared!</h2>
|
| 222 |
<img src='data:image/jpeg;base64,{display_encoded_img}' width="512" height="512" />
|
|
|
|
| 228 |
and
|
| 229 |
<a href="https://www.shutterstock.com/g/Idoia+Lerchundi?rid=430751957" target="_blank">Shutterstock User PhoArt101</a>.
|
| 230 |
</div>
|
|
|
|
| 231 |
</body>
|
| 232 |
</html>
|
| 233 |
""",
|