laitkor commited on
Commit
41f7afb
·
verified ·
1 Parent(s): aee1582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -13,6 +13,7 @@ def draw_ruler(image, dpi=72, font_size=144):
13
  PIL.Image.Image: The image with the ruler drawn on it.
14
  """
15
  dpi = image.info.get("dpi", (72, 72))
 
16
  dpi = dpi[0] if isinstance(dpi, tuple) else dpi
17
  # Create a drawing context
18
  draw = ImageDraw.Draw(image)
 
13
  PIL.Image.Image: The image with the ruler drawn on it.
14
  """
15
  dpi = image.info.get("dpi", (72, 72))
16
+ print("dpi:",image.info.get("dpi",(300,300)))
17
  dpi = dpi[0] if isinstance(dpi, tuple) else dpi
18
  # Create a drawing context
19
  draw = ImageDraw.Draw(image)