Hangs mid-way through writing rotated and cropped images

Bug #342488 reported by Ian Sullivan
2
Affects Status Importance Assigned to Milestone
BookLiberator
Confirmed
Critical
Unassigned

Bug Description

After loading rev 113 up with a full book's worth of image files and getting them all set for proper rotation and cropping, I selected PNG output and it started writing out the images. It got all the way to image 32 in the first set before halting with this error message:

Traceback (most recent call last):
  File "~/bkrpr/Bkrpr/wxGUI/Workspaces.py", line 304, in <lambda>
    button.Bind(wx.EVT_BUTTON, lambda e: self.on_image(e,M))
  File "~/bkrpr/Bkrpr/wxGUI/Workspaces.py", line 335, in on_image
    pd.go()
  File "~/bkrpr/Bkrpr/wxGUI/ProgressDialog.py", line 41, in go
    if generator.next() == False:
  File "~/bkrpr/Bkrpr/wxGUI/Workspaces.py", line 323, in _write_image_files
    im.save(p.path+'.rc.'+ext)
  File "~/bkrpr/Bkrpr/graphic.py", line 185, in save
    self.im.save(*arg, **kwarg)
  File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1406, in save
    save_handler(self, fp, filename)
  File "/usr/lib/python2.5/site-packages/PIL/PngImagePlugin.py", line 510, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
  File "/usr/lib/python2.5/site-packages/PIL/ImageFile.py", line 476, in _save
    e.setimage(im.im, b)
SystemError: tile cannot extend outside image

Revision history for this message
Ian Sullivan (sullivan) wrote :

Ran into same error message on second attempt to crop using trunk code. Different book used for second attempt.

Changed in bkrpr:
status: New → Confirmed
importance: Undecided → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.