How to show jpg in fullscreen mode
#1
hi!
anybody here who could help me out with some code fragment which shows a jpg file from harddisk? if possible with all features from picture viewer (zoom,rotate).

thanks in advance!
reflex
Reply
#2
hi
i never tryed it but you can try this new feature ; httpapi :
http://www.xboxmediaplayer.de/cgi-bin....t=14404
not sure how it should work, but you can have a look in it. it seems to have some functions to use the picture viewer
Reply
#3
as solexalex said there is some features of httpapi that can help you. look at the doc file of httpapi.
http://prdownloads.sourceforge.net/xbmc/...irror=nchc

here are some i found in that doc :
showpicture(filename)
o displays the image filename.

zoom(magnification)
o zooms the currently displayed image to a level specified by magnifaction. a magnification of 0 is the standard zoom level of none. magnification can take values up to 8.

rotate
o rotates the currently displayed image by 90 degree clockwise.

the httpapi was recently exposed to python,
so you need a fresh cvs build to use it.
not sure if these httpapi is something you could use since they only makes you controll the existing pictureviewer of xbmc.
Reply
#4
many thanks, i will try it out!
c ya
reflex

ps: i need it because i want to implement a playlist where you can combine (at least) pictures and videos (and the xbmc developers refuse to make an universal playlist). i make short clips in holidays and it breaks the experience when you have to watch the pictures first and then switch to the clips. if somebody is interested - and it works - i can publish it here...
Reply
#5
some of the resons i made playlistwalker.
http://home.no.net/thor918/xbmc/

anyway when making this you could relly benifit by using http api getdirectory, as this have access to smb share, and probably other directory listnings not supported by python!
Reply
#6
nice thing your playlistwalker!
the problem is, if the files are changing often, its complicated to run it first..
i hope i can manage it in my script, to navigate to a directory and simply play all files in order...
Reply

Logout Mark Read Team Forum Stats Members Help
How to show jpg in fullscreen mode0