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
14ea6800
Commit
14ea6800
authored
Apr 22, 2021
by
Amrita Deb
Browse files
Merge branch 'rohlfing_fix_wrong_pdf_size' into 'master'
Fix wrong PDF size See merge request
rwthmoodle/exam-scan!28
parents
41f0e1ab
a794fb15
Changes
1
Hide whitespace changes
Inline
Side-by-side
watermark.py
View file @
14ea6800
...
...
@@ -152,7 +152,7 @@ def watermark_img(img_file, template, dpi):
# Save image as PDF and delete original image file
pdf_file
=
os
.
path
.
splitext
(
img_file
)[
0
]
+
'.pdf'
out
.
save
(
pdf_file
)
out
.
save
(
pdf_file
,
resolution
=
dpi
)
if
os
.
path
.
isfile
(
img_file
):
os
.
remove
(
img_file
)
...
...
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