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|falseopenImage()
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|falseshowImage()
Checks if an image is requested and displays one if needed
public
static showImage() : bool
Return values
boolshowThumbnail()
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