forked from emilevs/label_printer
update label width
This commit is contained in:
parent
63217f6b16
commit
2af7504c01
4 changed files with 10 additions and 9 deletions
12
app.py
12
app.py
|
@ -22,26 +22,26 @@ templates = {
|
||||||
"DNH": {
|
"DNH": {
|
||||||
"text1": {
|
"text1": {
|
||||||
"string": "Do Not Hack",
|
"string": "Do Not Hack",
|
||||||
"size": 50,
|
"size": 130,
|
||||||
"pos": 0
|
"pos": 0
|
||||||
},
|
},
|
||||||
"text2": {
|
"text2": {
|
||||||
"string": "bottom text",
|
"string": "bottom text",
|
||||||
"size": 25,
|
"size": 50,
|
||||||
"pos": 55
|
"pos": 130
|
||||||
},
|
},
|
||||||
"cut": True
|
"cut": True
|
||||||
},
|
},
|
||||||
"Food": {
|
"Food": {
|
||||||
"text1": {
|
"text1": {
|
||||||
"string": "Nickname",
|
"string": "Nickname",
|
||||||
"size": 50,
|
"size": 130,
|
||||||
"pos": 0
|
"pos": 0
|
||||||
},
|
},
|
||||||
"text2": {
|
"text2": {
|
||||||
"string": "",
|
"string": "",
|
||||||
"size": 25,
|
"size": 50,
|
||||||
"pos": 55
|
"pos": 130
|
||||||
},
|
},
|
||||||
"cut": True
|
"cut": True
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
label_width = 100
|
|
||||||
|
label_width = 213
|
||||||
printer_width = 512
|
printer_width = 512
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
{% if filename %}
|
{% if filename %}
|
||||||
<br><br>
|
<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">
|
<form method="POST" action="/image-print">
|
||||||
{% if cut %}
|
{% if cut %}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
{% if filename %}
|
{% if filename %}
|
||||||
<br><br>
|
<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">
|
<form method="POST" action="/text-print">
|
||||||
{% if cut %}
|
{% if cut %}
|
||||||
|
|
Loading…
Reference in a new issue