WIKINDX API trunk

ImageServer
in package

ImageServer

The class that displays images (icons and thumbnails)

Table of Contents

Methods

createThumbnail()  : GdImage|false
Creates and returns a thumbnail image object from an image file
openImage()  : GdImage|false
A helping function for opening different types of image files
showImage()  : bool
Checks if an image is requested and displays one if needed
showThumbnail()  : void
Function for displaying the thumbnail.

Methods

createThumbnail()

Creates and returns a thumbnail image object from an image file

public static createThumbnail(string $file) : GdImage|false
Parameters
$file : string

Filename path

Return values
GdImage|false

openImage()

A helping function for opening different types of image files

public static openImage(string $file) : GdImage|false
Parameters
$file : string

Filename path

Return values
GdImage|false

showImage()

Checks if an image is requested and displays one if needed

public static showImage() : bool
Return values
bool

showThumbnail()

Function for displaying the thumbnail.

public static showThumbnail(string $file) : void

Includes attempts at caching it so that generation is minimised.

Parameters
$file : string

Filename path


        
On this page

Search results