stzhao commited on
Commit
32a1b08
·
verified ·
1 Parent(s): db3bd9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def render_annotations(annotations, image_dir):
63
  surface = canvas.getSurface()
64
  # image_buffer = surface.makeImageSnapshot().encode(skia.kPNG_Codec)
65
  # annotated_images.append((image_buffer, f"Page {page_index}"))
66
- surface.makeImageSnapshot().save(output_path, skia.kPNG_Codec)
67
  annotated_images.append(output_path)
68
 
69
  return annotated_images
 
63
  surface = canvas.getSurface()
64
  # image_buffer = surface.makeImageSnapshot().encode(skia.kPNG_Codec)
65
  # annotated_images.append((image_buffer, f"Page {page_index}"))
66
+ surface.makeImageSnapshot().save(output_path)
67
  annotated_images.append(output_path)
68
 
69
  return annotated_images