URL:
<http://gna.org/bugs/?15859>
Summary: Huge background images failure
Project: MyPaint
Submitted by: s2097
Submitted on: Monday 04/12/10 at 19:57
Severity: 2 - Minor
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 0.7.1+git
Planned Release: None
Operating System: Debian
_______________________________________________________
Details:
Hey, friends,
I made a huge (well, about A4 in 600 dpi) background image.
First it gave me grief that it had alpha. All right, back to the drawing
board and I made a non-alpha image. Then it wasn’t a multiple of 64. Ok,
add a few pixels to height and width, so it was. Then it still couldn’t
deal with the size. Indexed png, 4224 × 6336.
All my love!
Traceback (most recent call last):
File "/usr/local/share/mypaint/gui/pixbuflist.py", line 149,
configure_event_cb(self=<BackgroundList object at 0x5a30140 (GtkDrawingArea
at 0x5d441c0)>, widget=<BackgroundList object at 0x5a30140 (GtkDrawingArea at
0x5d441c0)>, size=<gtk.gdk.Event at 0x3270990: GDK_CONFIGURE x=0, y=0,
width=672, height=619>)
return
self.update(size.width, size.height)
variables: {'self.update': ('local', <bound method BackgroundList.update of
<BackgroundList object at 0x5a30140 (GtkDrawingArea at 0x5d441c0)>>),
'size.height': ('local', 619), 'size.width': ('local', 672)}
File "/usr/local/share/mypaint/gui/pixbuflist.py", line 116,
update(self=<BackgroundList object at 0x5a30140 (GtkDrawingArea at
0x5d441c0)>, width=672, height=544)
pixbuf = self.pixbuffunc(item)
if pixbuf not in self.thumbnails:
variables: {'item': ('local', <gtk.gdk.Pixbuf object at 0x5a30be0
(GdkPixbuf at 0x57de800)>), 'self.pixbuffunc': ('local', <bound method
BackgroundList.pixbuf_scaler of <BackgroundList object at 0x5a30140
(GtkDrawingArea at 0x5d441c0)>>), 'pixbuf': ('local', <gtk.gdk.Pixbuf object
at 0x599bb90 (GdkPixbuf at 0x5e0c800)>)}
File "/usr/local/share/mypaint/gui/backgroundwindow.py", line 146,
pixbuf_scaler(self=<BackgroundList object at 0x5a30140 (GtkDrawingArea at
0x5d441c0)>, pixbuf=<gtk.gdk.Pixbuf object at 0x5a30be0 (GdkPixbuf at
0x57de800)>)
if pixbuf not in self.pixbufs_scaled:
scaled = helpers.pixbuf_thumbnail(pixbuf, N, N)
# add plus sign
variables: {'scaled': (None, None), 'pixbuf': ('local', <gtk.gdk.Pixbuf
object at 0x5a30be0 (GdkPixbuf at 0x57de800)>), 'helpers.pixbuf_thumbnail':
('global', <function pixbuf_thumbnail at 0x2fc0cf8>), 'N': ('global', 64)}
File "/usr/local/share/mypaint/lib/helpers.py", line 116,
pixbuf_thumbnail(src=<gtk.gdk.Pixbuf object at 0x5a30be0 (GdkPixbuf at
0x57de800)>, w=64, h=64)
src2.copy_area(0, 0, w2, h2, dst, (w-w2)/2, (h-h2)/2)
return dst
variables: {'h2': ('local', 64), 'h': ('local', 64), 'dst': ('local',
<gtk.gdk.Pixbuf object at 0x599b870 (GdkPixbuf at 0x5e0c850)>), 'src2':
('local', None), 'w2': ('local', None), 'w': ('local', 64)}
AttributeError: 'NoneType' object has no attribute 'copy_area'
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15859>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs