Dashboard > OSL Monitor > ... > Modules > picture-module
OSL Monitor Log In   View a printable version of the current page.
picture-module
Added by SebastianWagner, last edited by SebastianWagner on Jun 23, 2006  (view change)
Labels: 
(None)

> home > Documentation > Modules

Slide-Show 

The Slide show ( as seen on http://bigscreen.osuosl.org/oslmon/dev/ ) is a dynamic slide-show of pictures, which refreshes after a certain amount of time.

The Animation:
A made two "Post-Apps" to calculate the position of the slide/to get the Trigonometrie of an Ellipse running. The process can be seen here:
    http://bigscreen.osuosl.org/oslmon/slideshow/way/ 

The number of images on the Slide-Show can by set, anyway it must be clear that less then 4 pictures it makes no sense (and more then 30/40 also). Therefore i'll included another small app "The Imagebrowser". I'll add that Component later on.

Using PHP as Proxy-Layer / Image-Cache for Image loading 

Cause Flash can only load JPG out of the Box in Solo-Application (in a Laszlo-Server-Modus all image-processing is proxied by OpenLaszlo-Server) PHP does now the Job for us so that we can load JPGs/GIFs and PNG Files (and create Thumbs of all). This feature is using the GD-lib of PHP. GD-lib is enabled @ default configuration in PHP (and normally all ISPs/Providers-/WebHoster-) enable it cause its quite common to use it.

Its all in the class class.thumbnail.php:

1.It loads the Image via tcp-fsockopen from another Server (see RSS-Component) and investigates the Content/Type
2.If Content-Type is image/png or image/gif or image/jpg it create a temp file of that Image (there is an attribute forcereload, that forces PHP to overwrite the file if it already exists, otherwise temp file will not be created once again ->thats the caching )
3. Based on that temp-file a thumb of that image will be created in the requested-size ( again same thing with attribute forcereload )
4. It returns an array of the name of the created thumbpath/status/tempfilepath

cause there will be files written on the disk the directory "thumbs" needs to be writeable (at least for the user who is running PHP)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators