import win32print
import win32ui
from PIL import Image, ImageWin

PHYSICALWIDTH = 60
PHYSICALHEIGHT = 30

printer_name = win32print.GetDefaultPrinter ()
file_name = "1.png"

hDC = win32ui.CreateDC ()
hDC.CreatePrinterDC (printer_name)
printer_size = (600,300)

bmp = Image.open (file_name)

hDC.StartDoc (file_name)
hDC.StartPage ()

dib = ImageWin.Dib (bmp)
dib.draw (hDC.GetHandleOutput (), (0,0,printer_size[0],printer_size[1]))

hDC.EndPage ()
hDC.EndDoc ()
hDC.DeleteDC ()