INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Loading images with MCWS [mhwlng]  (Read 2494 times)

mhwlng

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • nothing more to say...
Loading images with MCWS [mhwlng]
« on: December 23, 2013, 11:35:00 am »

I have high resolution cover art (1200x1200)

When I request an image using the web service :

http://xxxxx/MCWS/v1/File/GetImage?File=936435&Type=Full&Width=1600&Height=1600&Format=png&Token=PW5J4NTI&FillTransparency=F9F9F9

I get a 400x400 image (format = png or jpg)

Am I doing something wrong or is this a bug ?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Loading images with MCWS [mhwlng]
« Reply #1 on: December 23, 2013, 11:44:47 am »

I have high resolution cover art (1200x1200)

When I request an image using the web service :

http://xxxxx/MCWS/v1/File/GetImage?File=936435&Type=Full&Width=1600&Height=1600&Format=png&Token=PW5J4NTI&FillTransparency=F9F9F9

I get a 400x400 image (format = png or jpg)

Am I doing something wrong or is this a bug ?

You're requesting a thumbnail.

Use Type=Full on the URL to get the full image.  Expect this to be at least an order of magnitude slower.
Logged
Matt Ashland, JRiver Media Center

mhwlng

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • nothing more to say...
Loading images with MCWS [mhwlng]
« Reply #2 on: December 23, 2013, 12:33:35 pm »

You're requesting a thumbnail.

Use Type=Full on the URL to get the full image.  Expect this to be at least an order of magnitude slower.

my example URL above contains type=Full and I still get 400x400 ?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Loading images with MCWS [mhwlng]
« Reply #3 on: December 23, 2013, 12:42:11 pm »

my example URL above contains type=Full and I still get 400x400 ?

That's a reading fail by me.  Let me test...

Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Loading images with MCWS [mhwlng]
« Reply #4 on: December 23, 2013, 12:51:54 pm »

I get the full size image on Type=Full.  I tried internal cover art and a sidecar PNG file.
Logged
Matt Ashland, JRiver Media Center

mhwlng

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • nothing more to say...
Re: Loading images with MCWS [mhwlng]
« Reply #5 on: December 23, 2013, 12:59:49 pm »

I simplified the URL to

http://xxx/MCWS/v1/File/GetImage?File=936435&Type=Full&Token=PW5J4NTI

and I still get 400x400 ?

note that playing now -> cover art looks fine...

I don't know if it matters but I have mp3 with external Folder.jpg (1200x1200)

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Loading images with MCWS [mhwlng]
« Reply #6 on: December 23, 2013, 01:01:33 pm »

What's in the 'Image File' field in MC?

Is the MCWS server also a Library Server Client?  Or anything else special?
Logged
Matt Ashland, JRiver Media Center

mhwlng

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • nothing more to say...
Re: Loading images with MCWS [mhwlng]
« Reply #7 on: December 23, 2013, 01:04:16 pm »

Quote
What's in the 'Image File' field in MC?

Image File : Folder.jpg

Quote
Is the MCWS server also a Library Server Client?  Or anything else special?

yes, the MCWS server is also a library server client.


note also that playing now -> cover art looks fine on the MCWS server (which is a library server client)
Logged

mhwlng

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • nothing more to say...
Re: Loading images with MCWS [mhwlng]
« Reply #8 on: December 24, 2013, 04:45:40 am »

1)

I found some weird timing issue

If I call this Browse/Image URL immediately after the last MCWS call (e.g.  Browse/Children )

http://xx/MCWS/v1/Browse/Image?ID=1081&Width=1600&Height=1600&Token=PW5J4NTI

then I get an image 400x400

but If I wait about 2-3 seconds, then I get the correct 1600x1600 image ?

This happens when the MCWS server is a library server client AND ALSO when I connect directly to the library server itself.

2)

also MCWS/v1/File/GetImage?File=...&Type=Full.... doesn't work at all for audio or video when MCWS server is a library server client

3)

When I connect directly to the library server and use GetImage?File=...&Type=Full.... all is ok.
no timing issues or thumbnail problem


as a workaround, I now get the album cover directly from the library server using GetImage?File=...&Type=Full.... while still getting the rest from the MCWS server (a library server client )


attached pictures show difference between (upscaled) thumbnail and full when screen resolution is 1920x1200
(I use this on a nexus 10 tablet which is 2560x1600)
Logged
Pages: [1]   Go Up