Textpattern | PHP Cross Reference | Content Management Systems |
Description: Tools for creating thumbnails.
Author: | C. Erdmann |
Author: | Robert Wetzlmayr |
Author: | Christoph Erdmann (CE) |
Author: | Benjamin Fleckenstein (BF) |
Author: | Marcus Gueldenmeister (MG) |
Author: | Andreas Bösch (AB) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
wet_thumb:: (3 methods):
__construct()
write()
asTag()
txp_thumb:: (4 methods):
__construct()
write()
delete()
UnsharpMask()
Creates thumbnails for larger images.
__construct() line: 187 |
Constructor. |
write($infile, $outfile) line: 203 |
Writes a thumbnail file. return: bool TRUE on success param: string $infile Image file name. param: array $outfile Array of thumb file names (1...n) |
asTag($aslink = true, $aspopup = false) line: 458 |
Return a reference to the the thumbnail image as a HTML a or img tag. return: string HTML markup param: bool $aslink Return an anchor tag to the source image param: bool $aspopup Open the link in new window |
Wrapper for wet_thumb interfacing Textpattern.
__construct($id) line: 503 |
Constructor. param: int $id The Image id. |
write($dummy1 = '', $dummy2 = '') line: 521 |
Creates a thumbnail image from a source image. return: bool TRUE on success param: string $dummy1 Isn't used. param: string $dummy2 Isn't used. |
delete() line: 556 |
Removes a thumbnail. return: bool TRUE on success |
UnsharpMask($img, $amount, $radius, $threshold) line: 578 |
Unsharp mask. Unsharp mask algorithm by Torstein Hønsi 2003 (thoensi_at_netcom_dot_no) Christoph Erdmann: changed it a little, because I could not reproduce the darker blurred image, now it is up to 15% faster with same results author: Torstein Hønsi author: Christoph Erdmann return: resource Sharpened image as a resource. param: resource $img Image as a resource param: int $amount Filter parameter param: int $radius Filter parameter param: int $threshold Filter parameter |
title