首页 > 其他分享 >reportlab报错“JPEG Unsupported JPEG marker: cb”

reportlab报错“JPEG Unsupported JPEG marker: cb”

时间:2023-07-22 09:55:26浏览次数:50  
标签:reportlab cb JPEG 报错 marker img1 data

报错信息

  1. reportlab.pdfbase.pdfdoc.PDFError: JPEG Unsupported JPEG marker: cb
  2. 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

相关文章