title: Printing Label from Brother QL-800 label printer
body: <p>I am trying to print a label from windows 10 using a python script and the brother_ql library. How do I create and print a label? </p>
  
  <p>Using PIL I have created an image that I would like to have printed on a label. Now I want to create a label for my Brother QL-800 label printer.  </p>
  
  <pre><code>from brother_ql import BrotherQLRaster, create_label
  from brother_ql.backends import backend_factory, guess_backend
  from brother_ql.devicedependent import models, label_type_specs, 
  label_sizes
  from PIL import Image
  
  LABEL_SIZES = [(name, label_type_specs[name]['name']) for name in 
  label_sizes]
  model = [m for m in models]
  printer_model = model[9]  #QL-800
  label_type = LABEL_SIZES[12]  #('29x90', '29mm x 90mm die-cut')
  
  im = Image.open('tempQR.png', 'r')
  im = im.resize((306, 991))
  qlr = BrotherQLRaster(printer_model)
  
  label = create_label(qlr, im, label_size='29x90', threshold=70, cut=True, 
  rotate=0)
  </code></pre>