Update app.py
Browse files
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)
|