Author Topic: Cover art display and settings  (Read 4467 times)

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Cover art display and settings
« on: January 23, 2011, 03:40:46 »
I am using the following and it works quite well in putting the cover on my desktop

cover.layout
Code: [Select]
[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

Thanks
« Last Edit: January 23, 2011, 23:58:50 by VastOne »

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Cover art display and settings
« Reply #1 on: January 24, 2011, 01: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.

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Cover art display and settings
« Reply #2 on: January 24, 2011, 05: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!

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Cover art display and settings
« Reply #3 on: January 26, 2011, 10: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...

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Cover art display and settings
« Reply #4 on: January 27, 2011, 03: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.

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Cover art display and settings
« Reply #5 on: January 27, 2011, 10:06:43 »
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.

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.

ochosi

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Cover art display and settings
« Reply #6 on: January 27, 2011, 13: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

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Cover art display and settings
« Reply #7 on: January 27, 2011, 13:40:46 »
Sounds like a plan, I will make it so...

Thanks