Hi marc. Nice addition to your panels. Couple suggestions, feel free to ignore them
- Name is quite long as you use the full path. I'm not sure how much you can put in a filename in windows 7/8 but i'm surprised my system doesn't complain names are too long. This might cause some issues if the path is compicated. Maybe using some sort of crc32 or hash of the music file would be better. Not sure it's possible.
- Reading the panel size from and producing a spectro image fitting the panel would give a cleaner display.
- You can reduce the size of the png images in the cache ( to about 2/3 of their size in my tests) by using OptiPNG. It's only a 97k command line portable tool (and open source like all tools you've used so far).
BTW, as i was posting this, i just had your "Now Playing" panel crash on me out of the blue
WSH Panel Mod (Now Playing by marc2003): initialized in 17 ms
Error: WSH Panel Mod (Now Playing by marc2003): Erreur d'exécution Microsoft JScript:
Objet requis
File: C:\Users\Roland\AppData\Roaming\foobar2000\marc2003\common7.js
Ln: 1393, Col: 4
<source text only available at compile time>
Looks like it's pointing to this part of common7.js
function cd(x, y, w, h) {
this.draw = function(gr) {
if (this.shadow) p.draw_image(gr, this.shadow_img, this.x, this.y, this.w, this.h, "centre");
p.draw_image(gr, this.case_img, this.x, this.y, this.w, this.h, "centre");
if (this.img) {
→ this.ratio = Math.min(this.w / this.case_img.Width, this.h / this.case_img.Height);
this.nw = 488 * this.ratio;
this.nh = 476 * this.ratio;
this.nx = Math.round((this.w - (452 * this.ratio)) / 2);
this.ny = Math.round((this.h - this.nh) / 2);
p.draw_image(gr, this.img, this.nx + this.x, this.ny + this.y, this.nw, this.nh, "crop");
}
p.draw_image(gr, this.semi_img, this.x, this.y, this.w, this.h, "centre");
if (this.gloss) p.draw_image(gr, this.gloss_img, this.x, this.y, this.w, this.h, "centre");
}
...
This all occured at the same time i had my Router crash, as i've noticed when trying to post this i no longer had internet connection. Probably related to the LastFM biography.
EDIT : On the other hand, it might be totally unrelated. I have the panel crashed again right now, and still have Internet access.