This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 6 years ago

Closed 6 years ago

#90 closed defect (invalid)

Cannot read interlaced PNG files

Reported by: jbenito Owned by: pferreir
Priority: normal Milestone: v0.97.0
Component: General Version: 0.97.0
Keywords: Cc:

Description

url: http://indico.cern.ch/abstractDisplay.py/abstractsPdf?confId=69338

parameters: {'abstracts': '25', 'confId': '69338'}

Traceback (most recent call last):
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/webinterface/rh/base.py", line 462, in process
    res = self._process()
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/webinterface/rh/CFADisplay.py", line 583, in _process
    data = pdf.getPDFBin()
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/PDFinterface/base.py", line 502, in getPDFBin
    self._doc.multiBuild( self._story, onFirstPage=self.firstPage, onLaterPages=self.laterPages)
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/PDFinterface/base.py", line 444, in multiBuild
    SimpleDocTemplate.multiBuild(self, story, self._filename, canvasMaker, maxPasses)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 771, in multiBuild
    self.build(tempStory, filename, canvasmaker)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 870, in build
    BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 699, in build
    self.clean_hanging()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 375, in clean_hanging
    self.handle_flowable(self._hanging)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 613, in handle_flowable
    f.apply(self)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 100, in apply
    apply(getattr(doc,arn), args)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 846, in handle_pageBegin
    self._handle_pageBegin()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 400, in handle_pageBegin
    self.pageTemplate.onPage(self.canv,self)
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/PDFinterface/conference.py", line 372, in firstPage
    c.drawInlineImage(imagePath, self._PAGE_WIDTH/4.0 - width/2, self._PAGE_HEIGHT - inch - heigth)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/canvas.py", line 547, in drawInlineImage
    img_obj = PDFImage(image, x,y, width, height)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/pdfimages.py", line 38, in __init__
    self.getImageData()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/pdfimages.py", line 122, in getImageData
    imagedata = pdfutils.cacheImageFile(image,returnInMemory=1)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfbase/pdfutils.py", line 66, in cacheImageFile
    code = makeA85Image(filename,IMG)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfbase/pdfutils.py", line 36, in makeA85Image
    raw = img.getRGBData()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/lib/utils.py", line 586, in getRGBData
    im = im.convert('RGB')
  File "/opt/python24/lib/python2.4/site-packages/PIL/Image.py", line 653, in convert
    self.load()
  File "/opt/python24/lib/python2.4/site-packages/PIL/ImageFile.py", line 155, in load
    self.load_prepare()
  File "/opt/python24/lib/python2.4/site-packages/PIL/PngImagePlugin.py", line 337, in load_prepare
    raise IOError("cannot read interlaced PNG files")
IOError: cannot read interlaced PNG files

Change History (4)

comment:1 Changed 6 years ago by jbenito

equest 183054099856 failed: "cannot read interlaced PNG files"

url: http://indico.cern.ch/conferenceProgram.py/pdf?confId=69338

parameters: {'confId': '69338'}

Traceback (most recent call last):
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/webinterface/rh/base.py", line 462, in process
    res = self._process()
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/webinterface/rh/conferenceDisplay.py", line 569, in _process
    data = pdf.getPDFBin()
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/PDFinterface/base.py", line 361, in getPDFBin
    self._doc.build(self._story, onFirstPage=self.firstPage, onLaterPages=self.laterPages)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 870, in build
    BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 699, in build
    self.clean_hanging()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 375, in clean_hanging
    self.handle_flowable(self._hanging)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 613, in handle_flowable
    f.apply(self)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 100, in apply
    apply(getattr(doc,arn), args)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 846, in handle_pageBegin
    self._handle_pageBegin()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py", line 400, in handle_pageBegin
    self.pageTemplate.onPage(self.canv,self)
  File "/opt/python24/lib/python2.4/site-packages/MaKaC/PDFinterface/conference.py", line 101, in firstPage
    c.drawInlineImage(imagePath, self._PAGE_WIDTH/2.0 - width/2, self._PAGE_HEIGHT - inch - heigth)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/canvas.py", line 547, in drawInlineImage
    img_obj = PDFImage(image, x,y, width, height)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/pdfimages.py", line 38, in __init__
    self.getImageData()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfgen/pdfimages.py", line 122, in getImageData
    imagedata = pdfutils.cacheImageFile(image,returnInMemory=1)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfbase/pdfutils.py", line 66, in cacheImageFile
    code = makeA85Image(filename,IMG)
  File "/opt/python24/lib/python2.4/site-packages/reportlab/pdfbase/pdfutils.py", line 36, in makeA85Image
    raw = img.getRGBData()
  File "/opt/python24/lib/python2.4/site-packages/reportlab/lib/utils.py", line 586, in getRGBData
    im = im.convert('RGB')
  File "/opt/python24/lib/python2.4/site-packages/PIL/Image.py", line 653, in convert
    self.load()
  File "/opt/python24/lib/python2.4/site-packages/PIL/ImageFile.py", line 155, in load
    self.load_prepare()
  File "/opt/python24/lib/python2.4/site-packages/PIL/PngImagePlugin.py", line 337, in load_prepare
    raise IOError("cannot read interlaced PNG files")
IOError: cannot read interlaced PNG files


comment:2 Changed 6 years ago by pferreir

PIL 1.1.7 now supports interlaced files:

comment:3 Changed 6 years ago by pferreir

  • Owner set to pferreir
  • Status changed from new to assigned

comment:4 Changed 6 years ago by pferreir

  • Resolution set to invalid
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.