How to resize Exaile’s album cover preview

Having switched to Exaile recently from Amarok i was wondering about the small covers Exaile uses. These are resizeable in the GUI of Amarok, not so in Exaile. I finally found the two lines of code that specify the album’s preview size.

Original cover size of Exaile Modded cover size of Exaile
original tweaked

First backup these two files:

/usr/lib/exaile/xl/covers.py
/usr/share/exaile/exaile.glade

( /usr/local/share… and /usr/local/lib… if you did compile from source .. ).

Now we will change the GUI to be able to hold a bigger image :

Close any instance of Exaile and as root open

/usr/share/exaile/exaile.glade

with your favourite editor and find the line with :

<widget class="GtkHBox" id="top_box"></widget>

this is line 1546 on my file. Change the height_request property to 250:

<property name=”height_request”>250</property>

The result should be something like this :

exaile.glade

In the second step open:

/usr/lib/exaile/xl/covers.py

to tell Exaile what size the covers should be displayed in the GUI:

Find the line with

COVER_WIDTH = 100

and change it to

COVER_WIDTH = 250

This should be line 24 :

covers.py

You can experiment with any reasonable sizes but be sure to match the GUI size with the incoming cover size.

2 Comments

  1. ANON says:

    Wunderbar! Fantastisch!

Leave a Reply