Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RWTHmoodle
exam-scan
Commits
70478205
Commit
70478205
authored
Apr 22, 2021
by
Christian Rohlfing
Browse files
same distance of watermark text independent of DPI
parent
21aa2a94
Changes
1
Hide whitespace changes
Inline
Side-by-side
watermark.py
View file @
70478205
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment