PDA

View Full Version : Retrieving Cover Art over TCPIP



barrygordon
2007-10-25, 22:36
When I retrieve the cover art using thumb.jpg, sometimes I get back the thumbnail image (100x100) and sometimes I get back the full sized image

This happens with both my own code or with internet explorer making the access.

The IE request looks like :

http://192.168.1.207:9000/music/1500/thumb.jpg

Once it locks onto the bigger image it always seems to stay there.

Since it is ranmdom like that I guess I should assume it is a bug and hop over to Bugzilla town.

Any one have any additional info ?

mherger
2007-10-25, 23:10
> When I retrieve the cover art using thumb.jpg, sometimes I get back the
> thumbnail image (100x100) and sometimes I get back the full sized
> image

thumb.jpg is imho legacy. Please use cover_XxY.jpg instead if you want
smaller artwork. Please see the "Server side resizing" part of that doc:
http://wiki.slimdevices.com/index.cgi?AlbumArtwork

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

barrygordon
2007-10-26, 18:27
Thanks Michael, that solved the problem. Perhaps you would be as kind as to answer another question.

It seems that the driver for the http request for cover art is trackID. I am looking at an application (first level music selection) where I have albumID not trackId. Is there any way to request cover art based on albumid or do I first have to get the trackid of a song on that album? if the latter bummer, after all album art is really album centric!

kdf
2007-10-26, 18:59
On 26-Oct-07, at 6:27 PM, barrygordon wrote:

>
> It seems that the driver for the http request for cover art is
> trackID.
> I am looking at an application (first level music selection) where I
> have albumID not trackId.

There is a member of the album object, artwork, that holds the ID of
the track used for cover art. Usually this is track 1.
if you are following CLI standards, it's the 'j' tag that returns the
artwork_track_id for the album query.
Unfortunately, I'm not sure how you would do this directly over tcpip.
-kdf

barrygordon
2007-10-26, 21:17
I hear you and will check it out, but in the CLI documentation they indicate that the tag j is a 1 or 0 indicating if there is cover art available. Let you know what I find. Thanks.

barrygordon
2007-10-27, 15:25
KDF, Thanks, I was reading the wrong piece of the API. It is there and just what I needed.