flask static fix, add text to image input

This commit is contained in:
Ali Abid 2020-09-25 12:13:47 -07:00
parent 12f8d8fbf6
commit ad47ea45a1
6 changed files with 6 additions and 6 deletions

View File

@ -88,7 +88,7 @@ def main():
def static(path):
path = os.path.join(STATIC_PATH_LIB, path)
if os.path.exists(path):
return send_file()
return send_file(path)
else:
abort(404)

View File

@ -45,7 +45,7 @@
.canvas_holder {
text-align: center;
width: 100%;
height: 100%;
height: calc(100% - 36px);
}
.saliency_holder {
position: absolute;

View File

@ -122,7 +122,7 @@ const image_input = {
find(".image_editor")[0], {
includeUI: {
menuBarPosition: 'left',
menu: ['crop', 'flip', 'rotate', 'draw', 'filter']
menu: ['crop', 'flip', 'rotate', 'draw', 'filter', 'text']
},
cssMaxWidth: 700,
cssMaxHeight: 500,

View File

@ -88,7 +88,7 @@ def main():
def static(path):
path = os.path.join(STATIC_PATH_LIB, path)
if os.path.exists(path):
return send_file()
return send_file(path)
else:
abort(404)

View File

@ -45,7 +45,7 @@
.canvas_holder {
text-align: center;
width: 100%;
height: 100%;
height: calc(100% - 36px);
}
.saliency_holder {
position: absolute;

View File

@ -122,7 +122,7 @@ const image_input = {
find(".image_editor")[0], {
includeUI: {
menuBarPosition: 'left',
menu: ['crop', 'flip', 'rotate', 'draw', 'filter']
menu: ['crop', 'flip', 'rotate', 'draw', 'filter', 'text']
},
cssMaxWidth: 700,
cssMaxHeight: 500,