magick without tears

master
Stephen Kerr 2 years ago
parent 4fe39db1ed
commit 49fc56f028

@ -0,0 +1,15 @@
# This is a flask application that overlaps uploaded images and text on top of images laid out in a grid on the browser.
from flask import Flask
from flask import request
from flask import render_template
import glob
app = Flask(__name__)
@app.route("/")
def overlap():
images = glob.glob('./static/img/*.png')
print(images)
return render_template("mosaic.html", images=images)

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

@ -0,0 +1,21 @@
<html>
<head>
<style>
body{
clear: both;
margin: 0;
}
img{
width: 20vw;
margin: 0;
padding: 0;
}
img:hover{
filter: invert(1);
}
</style>
</head>
<body>
{% for image in images %}<img src="{{image}}">{% endfor %}
</body>
</html>
Loading…
Cancel
Save