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
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2002-09-02 (12 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 3,209 This week: 3All time: 1,026 This week: 576Up
Version License Categories  
imgpopup 1.0Free for non-commercial...HTML, Graphics
Description Author  

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).

Picture of Germán Sosa
Name: Germán Sosa <contact>
Classes: 1 package by
Country: Argentina Argentina
Age: ???
All time rank: 91212 in Argentina Argentina
Week rank: 561 Up6 in Argentina Argentina Up

  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

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,209All time:1,026
 This week:3This week:576Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:792