update label width

This commit is contained in:
Your Name 2024-09-25 22:23:32 +02:00
parent 63217f6b16
commit 2af7504c01
4 changed files with 10 additions and 9 deletions

12
app.py
View file

@ -22,26 +22,26 @@ templates = {
"DNH": {
"text1": {
"string": "Do Not Hack",
"size": 50,
"size": 130,
"pos": 0
},
"text2": {
"string": "bottom text",
"size": 25,
"pos": 55
"size": 50,
"pos": 130
},
"cut": True
},
"Food": {
"text1": {
"string": "Nickname",
"size": 50,
"size": 130,
"pos": 0
},
"text2": {
"string": "",
"size": 25,
"pos": 55
"size": 50,
"pos": 130
},
"cut": True
}

View file

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-3.0-or-later
label_width = 100
label_width = 213
printer_width = 512

View file

@ -10,7 +10,7 @@
{% if filename %}
<br><br>
<img src="user_data/{{filename}}" alt="Uploaded image">
<img src="user_data/{{filename}}" alt="Uploaded image" style="height: 150px; width: auto;">
<form method="POST" action="/image-print">
{% if cut %}

View file

@ -34,7 +34,7 @@
{% if filename %}
<br><br>
<img src="user_data/{{filename}}" alt="Generated Image">
<img src="user_data/{{filename}}" alt="Generated Image" style="height: 150px; width: auto;">
<form method="POST" action="/text-print">
{% if cut %}