报错信息
- reportlab.pdfbase.pdfdoc.PDFError: JPEG Unsupported JPEG marker: cb
- reportlab.pdfbase.pdfdoc.PDFError:
Imaging Library not available, unable to import bitmaps only jpegs
fileName='PDFtool/data/img1.png' identity=[ImageReader@0x2866c5ad6f0 filename='PDFtool/data/img1.png'] JPEG Unsupported JPEG marker: cb
解决方案:
用windows自带的画图软件将fileName='PDFtool/data/img1.png' 另存为 fileName='PDFtool/data/img1.jpg' 格式,重命名无效
实验有效
参考来源:https://www.nucleustechnologies.com/blog/fix-an-unknown-or-invalid-jpeg-marker-type-is-found/
标签:reportlab,cb,JPEG,报错,marker,img1,data From: https://www.cnblogs.com/HeisenbergUncertainty/p/17572883.html