Login   Register  
PHP Classes
elePHPant
Icontem

Image Pop Up Class: Create thumbnails and link pictures in new windows

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Germán Sosa
Name: Germán Sosa <e-mail contact>
Packages: 1 Browse all classes by Germán Sosa Browse all classes by
Country: Argentina Argentina - PHP jobs in Argentina
Age: ???
All time rank: 88612 in Argentina Argentina
Week rank: 1003 Down13 in Argentina Argentina Down


  Detailed description   Download Download .zip .tar.gz  
Comments: This class is designed to ease the publication of images in html webpages that uses PHP.
1) With this class you can insert pictures in your web pages in one line (simlar to <IMG> tags).
2) The class automatically creates a link to the original image using javascript (displaying the selected picture in a new window with the size of the image) and presents a thumbnail in your page.
3) THIS CLASS DOES NOT NEED GD LIBRARY TO WORK, but if you have GD Library 2.0 or later installed it's possible to use the class to create thumbnails on the fly. The detection of the GD library is AUTOMATIC.
4) When GD Library 2.0 or later is not available, the image type is not supported by GD Library or simply when you want to decrease the execution time of your scripts, the class uses the original image as thumbnail and link, modifying its size on the IMGtag.
5) To protect your pictures, you can set up this class to use the images as CSS backgrounds of DIVtags that are creates automatically. In effect, a 100% transparent gif image (null.gif) is used to mask your DIVtag as an image, so visitors will save empty images on their disks.

Files:
1) imgpopup.class.php, containing the class definition.
2) imgpopup.php, for output the Pop Up Window Content.
3) img.php, for output the GD based Thumbnails.
4) imgpopup.js, JavaScript file containing de ImgPopUp Function.
5) null.gif, Transparent GIF used to mask image contents.

Extras:
1) test.php, examples and information about the use of the class.
2) misola.jpg, picture used in test.php (Thanks to Manuel Isola).

  Classes of Germán Sosa  >  Image Pop Up Class  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Image Pop Up Class
Base name: imgpopup
Description: Create thumbnails and link pictures in new windows
Version: -
PHP version: -
License: Free for non-commercial use
All time users: 3202 users
All time rank: 1009
Week users: 2 users
Week rank: 1223 Down
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (87.5%) Good (87.5%) - Good (87.5%) - - Sufficient (61.2%) 779
Month: Not yet rated by the users

  Applications that use this class  
Link Description
Class working in MathG Homepage Example of the class
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Germán E. Sosa. MathG Project Homepage. Homepage of the author

  Files folder image Files  
File Role Description
Accessible without login Plain text file img.php Appl. File for output the GD based Thumbnails
Plain text file imgpopup.class.php Class File containing the class definition
Accessible without login Plain text file imgpopup.js Appl. JavaScript file containing de ImgPopUp Function
Accessible without login Plain text file imgpopup.php Appl. File for output the Pop Up Window Content
Accessible without login Plain text file test.php Example Example of the class working

Download Download all files: imgpopup.tar.gz imgpopup.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.