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": {
|
||||
"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
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
label_width = 100
|
||||
|
||||
label_width = 213
|
||||
printer_width = 512
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue