PHP Classes
elePHPant
Icontem

ThumbnaiI Image: Resize images to generate thumbnails

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-12 (1 year ago) RSS 2.0 feedStarStarStarStar 68%Total: 2,131 All time: 1,744 This week: 1,335Up
Version License Categories  
tnimg 1.0GNU Lesser Genera...Graphics
Description Author  

This class can resize images to generate thumbnail versions.

It can generate thumbnail images keeping the proportions between the width and the height. It may also add optional text labels with a given color, font, size, rotation angle and position in the resized images.

It can load images from files of any format supported by the GD extension and generate thumbnails in either JPEG, PNG or GIF formats. The resized images can be saved to a given file or served directly to the user browser.

Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 28 packages by
Country: Armenia Armenia
Age: 35
All time rank: 61 in Armenia Armenia
Week rank: 29 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x

Details provided by the author  
ThumbnailImage 1.0.1 - Readme.txt (April 5, 2005)
http://vagh.armdex.com/tnimg

********************************************************
CONTENTS

1. Introduction
2. Features Listing
3. License Agreement
4. How to Use
5. Bugs Reporting
6. Author Contacts

********************************************************



1. INTRODUCTION

ThumbnailImage is a class written in PHP that allow you
to create with easy thumbnail galleries and to perform
different operations over images. Description of methods
and properties can be found in the same directory with
this file.


2. FEATURES LISTING

 - Working with all graphic formats supported in your
version of GD library in input. Creating JPEG, PNG and
GIF in output.

 - Converting images from any of GD supported formats to
JPEG, PNG or GIF.

 - Resizing images proportionally, fitting to specified
bounding rectangle.

 - Dynamically adding text labels in any font, size and
color and logo images in any supported format.
Positioning labels and logos to any corner of created
image.

 - Processing output directly to the browser or into the
disc files.


Version 1.0.1

Now it is possible to load image files by url.
Thanks to Luis Larrateguy for the idea.


3. LICENSE AGREEMENT

This code is released under GNU/LGPL license. It is free,
so you can use it at no cost.

However, if you release a script, an application, a
library or any kind of code using ThumbnailImages (or a
part of it), you must:

 - Indicate in the documentation (or a readme file),
that your work uses ThumbnailImage Class, and make a
reference to the author and the web site;

 - Give the ability to the final user to update the
class.

I will also appreciate that you send me an e-mail, just
to be aware that someone is using ThumbnailImage.

Warning!!!

This class and the associated files are non commercial,
non professional work. It should not have unexpected
results. However, if any damage is caused by this
software the author can not be responsible. The use of
this software is at the risk of the user.


4. HOW TO USE

1) Copy TNIMG.LIB.PHP somewhere on your server.

2) Include the library to your script:

  require_once ( '/tnimg.lib.php' );

3) Create the ThumbnailImage object:

  $ti = new ThumbnailImage ( );

4) Specify values for class properties:

  $ti->src_file = 'images/mypic.jpg';
  $ti->dest_type = THUMB_JPEG;
  $ti->dest_file = STDOUT;
  $ti->max_width = 300;
  $ti->max_height = 300;

5) Call Output() to proceed:

  $ti->Output ( );

Please read more detailed description of class methods
and properties in HELP files.


5. BUGS REPORTING

Please publish bugs reports here:
http://vagh.armdex.com/tnimg/forum.php


6. AUTHOR CONTACTS

This software was written by author on its leasure time.

E-mail: vagh@armdex.com

Phone numbers:

(+ 374 1) 58 88 75 (home)
(+ 374 9) 49 17 34 (mobile)

Postal address:

Vagharshak Tozalakyan,
Proshian str. 3/2,
Yerevan 19, ARMENIA.
  Files folder image Files  
File Role Description
Accessible without login Plain text file Help.eng.txt Doc. Description
Accessible without login Plain text file Readme.txt Doc. Readme
Plain text file tnimg.lib.php Class Class Definition

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,131All time:1,744
 This week:0This week:1,335Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:93%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:331