- Fixed log output

pull/199/head
Steve Clement 2018-06-30 12:01:21 +08:00
parent 184065cf74
commit 9f0313a97e
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ def handler(q=False):
img = WImage(width=pdf.width, height=pdf.height * pages) img = WImage(width=pdf.width, height=pdf.height * pages)
# Cycle through pages and stitch it together to one big file # Cycle through pages and stitch it together to one big file
for p in range(pages): for p in range(pages):
log.debug(f"Stitching page {p}") log.debug(f"Stitching page {p+1}")
image = img.composite(pdf.sequence[p], top=pdf.height * p, left=0) image = img.composite(pdf.sequence[p], top=pdf.height * p, left=0)
# Create a png blob # Create a png blob
image = img.make_blob('png') image = img.make_blob('png')
log.debug(f"Final image size is {pdf.width}x{pdf.height*p}") log.debug(f"Final image size is {pdf.width}x{pdf.height*(p+1)}")
else: else:
image = document image = document