gmusicbrowser Forum

Main board => Questions => Topic started by: VastOne on January 22, 2011, 22:40:46

Title: Cover art display and settings
Post by: VastOne on January 22, 2011, 22:40:46
I am using the following and it works quite well in putting the cover on my desktop

cover.layout
[D_buttons_song_cover]
Type= D
Name= _"Cover Only"
Window =  transparent=1
DefaultFontColor= white
VBmain = 2HBAlbum -Cover(forceratio=0,maxsize=375,minsize=375)



I am trying to accomplish a single size displayed no matter the size of the image.

If I have a 500x500 image, it displays fine at 375x375, but if the image is 500x452, it does not display at 375x375 but proportionally smaller, 375x325

If the image is 250x250, it displays it correctly at 375x375

So it seems as if it only has issues wit files that are not "square"

Is there a setting that I can use to make every image the size I want it to be?

If there is any documentation on all of this, please point me to it and I will soak it all up.
Edit - I did find the docs and made the change from forceratio=0 to 1, but this has not helped

Great App!!!!  I feel like I have been wasting my time on every other product I have ever used.

Below also is a link to my screenshot using Conky and the widget

http://picasaweb.google.com/lh/photo/XTRlOwRAmnJ4x6ovIvXRSA?feat=directlink (http://picasaweb.google.com/lh/photo/XTRlOwRAmnJ4x6ovIvXRSA?feat=directlink)

Thanks
Title: Re: Cover art display and settings
Post by: Quentin Sculo on January 23, 2011, 20:04:45
Currently the picture is always resized according to its ratio. I'm not sure I'll add an option to change that, because it usually doesn't look good.
If the problem is the position of the image, there are 2 options : xalign and yalign to control the position of the image, example : xalign=1 align the image to the right border (default is centered : 0.5)

The only doc is http://gmusicbrowser.org/layout_doc.html though it's only for v1.0.x, a lot of options have been added in v1.1.x.
Satoshi made an updated version on the wiki, though I haven't reviewed it yet :( so there might be some mistakes.
Some commits contain a small documentation for new options, that can easily be searched or dumped to a file with "git log".

btw, I think you can replace all the music part of your conky with a layout, with some small differences (in particular the progress bar will use the gtk theme). Ask me if you want help to do it.
Title: Re: Cover art display and settings
Post by: VastOne on January 24, 2011, 00:25:53
I have resolved it by just making sure all images are equal ratio, thank goodness for Gimp.

I have seen all of the layouts with GMB that could replace the conky, but I like the control I have with it with my script.

I did find all the docs and am currently absorbing it all

Thanks!
Title: Re: Cover art display and settings
Post by: VastOne on January 26, 2011, 05:28:17
Just as a follow up to this, I was able to get both conky scripts working to pull in both the mpris/dbus values and also a second one that will display the image at the prescribed values.

Available to anyone interested, just let me know...
Title: Re: Cover art display and settings
Post by: ochosi on January 26, 2011, 22:12:21
you could add it to the wiki (or ask me or quentin to do so), here's some (i guess from what i read here: deprecated) information (http://gmusicbrowser.org/dokuwiki/doku.php?id=third_party_apps:conky).
Title: Re: Cover art display and settings
Post by: VastOne on January 27, 2011, 05:06:43
Quote from: ochosi on January 26, 2011, 22:12:21
you could add it to the wiki (or ask me or quentin to do so), here's some (i guess from what i read here: deprecated) information (http://gmusicbrowser.org/dokuwiki/doku.php?id=third_party_apps:conky).

I can add it myself, the only question I have is ...

Do I replace what is there due to how deprecated it is?

If not, do I start from the bottom or from the top?

Just making sure since it will be my first edit.
Title: Re: Cover art display and settings
Post by: ochosi on January 27, 2011, 08:38:59
not sure, i would put it into a new subpage of the page i linked to before so that it can be
a) more easily found
b) more easily moved if a more suitable place is found later
Title: Re: Cover art display and settings
Post by: VastOne on January 27, 2011, 08:40:46
Sounds like a plan, I will make it so...

Thanks