myollie / img2pdf

losslessly convert images to pdf
58 stars 6 forks source link

supplying a list to img2pdf.convert() fails with type error #3

Open FreyGeospatial opened 2 years ago

FreyGeospatial commented 2 years ago

img2pdf.convert fails for me using this code:

with open(saveLocation + filename + '.pdf', 'wb') as z:
    z.write(img2pdf.convert(list_of_images))# this is where it fails
z.close()

Type error: a bytes-like object is required, not 'str'

jainakhil88 commented 2 months ago

I am also having same issue