Re: [Rhythmbox-devel] Cover Art Size Issue



On Sun, 2007-12-02 at 20:20 +0000, Ed Catmur wrote:
> On Fri, 2007-11-30 at 18:47 -0700, Richi Plana wrote:
> > On Fri, 2007-11-30 at 16:51 -0700, Alex Lancaster wrote:
> > > RP> cover.jpg wouldn't display but when I mogrify'd it to -quality 60
> > > RP> -size 500x500, RB would display it.
> > > 
> > > Sounds like a bug.  Did you check bugzilla?  If not, file it.
> > 
> > I just did. It's now here:
> > 
> > http://bugzilla.gnome.org/show_bug.cgi?id=500785
> > 
> > > RP> BTW, I'm just assuming it's the size of the file that's the
> > > RP> difference, but I'm not certain. It could be the quality or
> > > RP> dimension ... or some different encoding. *shrug*. Would the devs
> > > RP> want a copy of one of my cover.jpg files that won't display?
> > > RP> Better yet, could you teach me how to debug?  --
> > > 
> > > You can run rhythmbox in debug mode with:
> > > 
> > > rhythmbox -d
> > > 
> > > or if you want to filter on specific keywords, e.g., "foobar", within
> > > the debugging output you can use:
> > > 
> > > rhythmbox -D foobar
> > > 
> > > In your case you could filter on the artdisplay plugin using:
> > > 
> > > rhythmbox -D artdisplay
> > 
> > No luck. The plugin wasn't revealing any clues. What library does it use
> > for image manipulation?
> > --
> 
> gdk-pixbuf.  Try the following:
> 
> >>> import gtk
> >>> p = gtk.gdk.PixbufLoader()
> >>> data = open("cover.jpg").read()
> >>> p.write(data)
> True
> >>> p.close()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> gobject.GError: Error interpreting JPEG image file (Application
> transferred too few scanlines)
> 
> Possibly a gdk-pixbuf issue, as opening that same image with
> gtk.gdk.pixbuf_new_from_file() works fine.
> 
Yes, it was a gdk-pixbuf bug.  Find the patch at:
http://bugzilla.gnome.org/show_bug.cgi?id=494667#c5

Thanks for attaching the cover image, btw - that certainly helped
knowing where to start.

Ed



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]