Recommend this page to a friend! |
Download .zip |
Info | View files (11) | Download .zip | Reputation | Support forum (6) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2005-12-27 (10 years ago) | 71% | Total: 4,060 This week: 2 | All time: 734 This week: 591 |
Version | License | Categories | ||||
phpthumbnailer 1.0.0 | GNU General Publi... | Graphics |
Description | Author | |||||||||||||
This class can be used to create thumbnail images on the fly. |
|
By Hidayet Dogan - http://www.hido.net - March 29, 2005 phpThumbnailer 1.2 - http://www.hido.net/projects/phpThumbnailer phpThumbnailer is a simple PHP class for create thumbnails or resize images. Requirements ------------ GD extension enabled PHP. Sample Use ---------- <? include("class.Thumbnail.php"); $tn_image = new Thumbnail("sample.png", 0, 0, 50); # | | | | # | | | +-- Percent (optional) # | | +-- Maximum height (optional) # | +-- Maximum width (optional) # +-- Original image filename # To show $tn_image->show(); # To show (it won't show image) $tn_image->save("tn_sample.png"); # or $tn_image->show("tn_sample.png"); ?> For more samples see samples/sample.html... Note ---- Version of GD library older than gd-1.6 support GIF format images, and do not support PNG images, where versions greather than gd-1.6 support PNG, not GIF. In order to create thumbnails in JPEG format, you will need to obtain and install jpeg-6b library, and then recompile gd to make use of jpeg-6b. You will also have to compile PHP with --with-jpeg-dir=/path/to/jpeg-6b. Sorry for my stupid english. Disclaimer ---------- No responsiblity for any security risks or software bugs whatsoever is accepted by the author(s). |
Files |
File | Role | Description | ||
---|---|---|---|---|
sample (7 files) | ||||
ChangeLog | Doc. | ChangeLog | ||
class.Thumbnail.php | Class | Source Code | ||
LICENSE | Lic. | LICENSE | ||
README | Doc. | README |
Files | / | sample |
File | Role | Description |
---|---|---|
sample.html | Data | Sample Usage |
sample.jpg | Data | Sample JPEG File |
sample1.php | Example | Sample Script |
sample2.php | Example | Sample Script |
sample3.php | Example | Sample Script |
sample4.php | Example | Sample Script |
save1.php | Example | Sample Script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Pages that reference this package |
One PHP thumbnail builder - |