Created
September 27, 2019 14:59
-
-
Save santhalakshminarayana/d82b2402e6d64082a7dcf8843d50597c to your computer and use it in GitHub Desktop.
Medium:Imagetopdf save as pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Convert all digitised images to pdf format | |
digitised_images=[] | |
for name in digitised_image_names: | |
imgg=Image.open(name) | |
digitised_images.append(imgg) | |
name=curr_path+"/digitised_images"+'.pdf' | |
if len(digitised_images)>1: | |
digitised_images[0].save(name,save_all=True,append_images=digitised_images[1:],resolution=100.0) | |
else: | |
digitised_images[0].save(name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment