Commit 70478205 authored by Christian Rohlfing's avatar Christian Rohlfing
Browse files

same distance of watermark text independent of DPI

parent 21aa2a94
......@@ -81,8 +81,10 @@ def create_watermark_template(img_file, matnum, dpi):
# Positions of watermarks
x_pos = []
y_pos = []
for y in range(0, height*2, 500):
for x in range(0, width*2, 500):
x_dist = int(2*dpi)
y_dist = int(2*dpi)
for y in range(0, height*2, x_dist):
for x in range(0, width*2, y_dist):
x_pos.append(x)
y_pos.append(y)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment