Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Beginner issues: Album Art won't show on rudimentary wps
« previous next »
  • Print
Pages: [1]

Author Topic: Beginner issues: Album Art won't show on rudimentary wps  (Read 2337 times)

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Beginner issues: Album Art won't show on rudimentary wps
« on: February 23, 2008, 01:04:25 PM »
Hi - based on the wikis on making your own wps and the album art wiki, I tried making a very basic wps.

The basic idea was to stick with the default format with very minor modifications

%s%?it<%?in<%in. |>%it|%fn>
%s%?ia<%ia|%?d2<%d2|(root)>>
%s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>

%pc/%pt
[%pp:%pe]

%pb

and then get some album art on the left side of the screen, under the time data but over the progress bar.

I tried a bunch of things, but the album art never showed.  Just to test I made a blank wps with just a %c tag on it, and one with a %cl tag on it, and nothing showed.  I'm using album art called "cover.bmp" in the same folder as the tracks being played, and the art does show when I use previously made themes from the rockbox themes section, so I don't imageine it's a problem with the art.

Anyone have any ideas what the issue might be?  
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #1 on: February 23, 2008, 01:50:34 PM »
What format is your album art in, and what are the filenames?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #2 on: February 23, 2008, 02:06:04 PM »
Hi - they're just "cover.bmp" and they're in the same directory as the files I'm playing.  They work fine with other wps themes that have album art.  

Also a few questions:

1. What's the difference between %c and %cL? (I capitaliszed the "l" so you can differentiate it from a one or a vertical line)

2. When you're determining the position of the album art how do the x and y numbers work exactly?  is 0,0 in the center of the screen (meaning you'd have negative numbers to go down or left), or is it the 0,0 point at the bottom left?
« Last Edit: February 23, 2008, 02:18:37 PM by johnnyhaggis »
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #3 on: February 23, 2008, 02:22:52 PM »
%Cl defines where the album art appears

The x position defined the left hand edge, and the y position defines the top edge.  Therefore the position x|y is the top left corner.

Once you have defined this, then %C shows the album art.

What dimensions are your cover.bmp?
« Last Edit: February 23, 2008, 02:28:21 PM by BigBambi »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #4 on: February 23, 2008, 02:24:46 PM »
The one I'm using to test is 130 x 130 pixels.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #5 on: February 23, 2008, 02:28:05 PM »
So you want

%Cl|xpos|ypos|130|130|
%C

where xpos is the left limit and ypos is the top limit.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #6 on: February 23, 2008, 02:39:46 PM »
Quote from: BigBambi on February 23, 2008, 02:28:05 PM
So you want

%Cl|xpos|ypos|130|130|
%C

where xpos is the left limit and ypos is the top limit.


Oh I think I see the problem then.  I need to define a %Cl position, then then I ALSO have to add a %C on the next line to tell it to show the image?  I was only putting one or the other.

So a %C by itself does nothing without a %cl line?

A few things that aren't clear to me:

What do you mean by the "limit"?
When I'm determining the xpos and ypos I'm defining the where the outermost corner or the image goes?  
Or am I determining where the center of the image goes.

So for example, let's say I have a 320X240 screen.  I want the image in the:
    lower right corner: my xpos is 320 and my ypos is 240?
    lower left corner: my xpos is 0 and my ypos is 240?
    top left corner: xpos is 0 and ypos is 0?

Is it necessary to define the size of the image?  Can't I just leave those blank tell it to go on the right center of the screen, and it'll just show the image as whatever size it actually is?
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #7 on: February 23, 2008, 02:45:43 PM »
Yes, you need both %Cl and %C

By limit I mean position.  Yo are determining where the innermost position goes.

So If you have a 320x240 screen and you have 130x130 album art and you want it in the bottom left, you want xpos to be 320-130 = 190 and ypos = 240 - 130 = 110

therefore:

%Cl|190|110|130|130|
%C
« Last Edit: February 23, 2008, 02:47:55 PM by BigBambi »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #8 on: February 23, 2008, 03:26:04 PM »
Excellent - so it works, thank you!  However I still have one problem.

Here's my wps

%s%?it<%?in<%in. |>%it|%fn>
%s%?ia<%ia|%?d2<%d2|(root)>>
%s%?id<%id|%?d1<%d1|(root)>> %?iy<(%iy)|>


%pc/%pt
[%pp:%pe]
%pb

%Cl|150|50|170|170|
%C

The problem is that on the line where you have the %pc/%pt tags, there is a blank space on top of the album image, even though the time numbers are all the  way on the other side of the screen.

The [%pp:%pe] line doesn't cause a blank space over the album art, even though it's on the same line as it.

Why is that?  Does it have to do with the fact that the seconds are countring and changing?  Does that mean I absolutely have to put the counter on a different line?
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Beginner issues: Album Art won't show on rudimentary wps
« Reply #9 on: February 24, 2008, 11:09:12 AM »
At the moment, I believe so.  However the coming viewports will fix that by allowing you to define many smaller areas within the screen.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Beginner issues: Album Art won't show on rudimentary wps
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.065 seconds with 15 queries.