uartimcs commited on
Commit
385ed2f
·
verified ·
1 Parent(s): 6b42d8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def analysis_process(pdf_file):
13
  # Render the page to a pixmap
14
  pix = page.get_pixmap()
15
  # Save the pixmap as an image
16
- image = Image.frombytes("RGB", [720, 1029], pix.samples)
17
  image_path = "first_page.jpg"
18
  image.save(image_path)
19
 
 
13
  # Render the page to a pixmap
14
  pix = page.get_pixmap()
15
  # Save the pixmap as an image
16
+ image = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
17
  image_path = "first_page.jpg"
18
  image.save(image_path)
19