PHP Classes

HTML Image Tag: Generate HTML image tags programmatically

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 891 All time: 3,963 This week: 100Up
Version License PHP version Categories
htmlimagetag 1.0.0BSD License3.0HTML, Graphics


This class can be used to generate HTML image tags programmatically.

It can automatically compute the image size to fill the width and height attributes for images defined from locally accessible files.

The class can also generate an image tag with a special source URL that contains the actual image data defined according to RFC 2397. This way it, the image can be embedded in your HTML documents, making it possible to display the HTML documents without requiring external image files.

The data for embedded images may be supplied from a locally accessible file or from a string that contains the image file binary data.

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 45 packages by
Country: Portugal Portugal
Age: 55
All time rank: 1
Week rank: 2 Down1 in Portugal Portugal Equal

  Files folder image Files  
File Role Description
Accessible without login HTML file html_image_tag_class.html Doc. Reference manual
Plain text file html_image_tag_class.php Class The HTML image class
Accessible without login Plain text file test_html_image_tag.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,963
This week:100Up
User Ratings User Comments (1)
 All time