Downloading pictures
#1
Hi,
is it possible to download a picture from an XBMC server, maybe similar like downloading covers (http://<your ip>:<configured port>/image/<url encoded image:// path>)?
Thanks,
Markus
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#2
What do you mean by picture?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
Sorry, I'm talking about the photo library
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#4
Specifically, if I do a "Files.GetDirectory" on a folder with pictures, I get a list of picture files with the "file" property pointing to the exact path where the picture file is located on the server, but the "thumbnail" property is an empty string.
It looks like for the currently shown picture in the playlist a thumbnail is supplied.
I guess I could do a "Files.Download" but that transfers the high-res picture
Thanks,
Markus
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#5
Usually the "thumbnail" property is the poster of the media item (in full resolution) so it's probably just a very misleading naming issue in case of pictures. It only works for library items and we don't have a library for pictures.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#6
Thanks for your answer. I actually found another way to get exactly what need, namely using the URL:

http://<server-address>/image/image://<URL encoded image path>/transform?size=thumb

This way I get a thumbnail of each image. One strange thing though I noticed: If I encode the "/" in my image path with "%2F" it does not work. If I encode it with "%252F" it works. Like double encoding the "%"??
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#7
Well internally we use URLs of the type
Code:
image://<url-encoded image path>
so if you want to pass that into an URL understandable to the webserver you need to URL encode the whole thing (including the "image://" part) again to get a valid URL. Therefore you get double-encoding of the original image path.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#8
Ok got it. Thanks!
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply

Logout Mark Read Team Forum Stats Members Help
Downloading pictures0