Skip to content

Commit

Permalink
Update default print size
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jul 13, 2024
1 parent a7f451b commit c29870b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions printserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def get_image_bytes(image_source):

@app.route('/print/<int:vendor_id>/<int:product_id>', methods=['POST'])
def print_label(vendor_id, product_id):
print_canvas_width_mm = request.args.get('print_canvas_width_mm', 80, type=int)
print_canvas_height_mm = request.args.get('print_canvas_height_mm', 80, type=int)
print_canvas_width_mm = request.args.get('print_canvas_width_mm', 70, type=int)
print_canvas_height_mm = request.args.get('print_canvas_height_mm', 70, type=int)
margin_top_px = request.args.get('margin_top_px', 0, type=int)
margin_left_px = request.args.get('margin_left_px', 0, type=int)
print_dpi = request.args.get('print_dpi', 203, type=int)
Expand Down

0 comments on commit c29870b

Please sign in to comment.