My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
ThumbnailDeutsch  
Kurzbeschreibung der Thumbnail-Klassen.
PHP, Featured, Phase-Design
Updated Jun 7, 2010 by fla...@gmail.com

Thumbnail

Klassen zum Erzeugen von einem Thumbnail (Vorschaubild) eines Bildes. Es kann gecached und mit einem Logo / Wasserzeichen versehen werden. Des weiteren kann ein Vorschaubild (ContactSheet) eines gesammten Ordners erstellt werden.

Flattr this

/* picture, cache time in seconds (default: 0 sec. = no caching) */
$thumbnail = new WMThumbnail('sampleimage.jpg', 100); //

/* path to logo/watermark picture, position of the logo: 1 = left-top,
2 = right-top, 3 = right-bottom, 4 = left-bottom, 5 = center (default = 3),
margin to the border (default = 1) */
$thumbnail->addLogo('logo2.png', 3, 1);
$thumbnail->addLogo('icon2.png', 2, 3); // add more logos if you want

/* set max. width and height of the thumbnail (default: 100, 100) */
$thumbnail->setMaxSize(150, 121);
/* quality or speed when creating the thumbnail (default: true) */
$thumbnail->setQualityOutput(TRUE);

/* picture type (png, jpg, gif, wbmp), jpg-quality (0-100) (default: png, 75) */
$thumbnail->outputThumbnail('jpg', 80); 

Sign in to add a comment
Powered by Google Project Hosting