PHP Classes
elePHPant
Icontem

PHP Image to HTML: Display an image on a page using only HTML tags

Recommend this page to a friend!

  Author Author  
Name: chrys ugwu <contact>
Classes: 7 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz  
This class can display an image on a page using only HTML tags.

It can take the path of an image file and scans its pixels to determine which colors they use, so it can generate HTML tags that when displayed on a Web page that show the same image but without using the image file.

The image can be converted in a different scale by providing a factor of how many times the displayed image will appear in terms of width and height when compared to the original image size.

Details

php_image_to_html

converts image to html PITH SITE

for one match


require_once('ImageToHtml.php');
echo ImageToHtml::render('images/test.png');

/*
Note: acceptable images type: 'png, jpeg and gif'

//return rendered image with default attribute
echo ImageToHtml::render('images/test.png');
//return rendered image with default width multiplied by 4
echo ImageToHtml::render('images/test.png', 4);
//return rendered image with default height multiplied by 4
echo ImageToHtml::render('images/test.png', null, 4);
//return rendered image with default width and height multiplied by 4
echo ImageToHtml::render('images/test.png', 4, 4);



  Classes of chrys ugwu  >  PHP Image to HTML  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: PHP Image to HTML
Base name: image_to_html
Description: Display an image on a page using only HTML tags
Version: -
PHP version: 5
License: BSD License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imageimages (3 files)
Files folder imagesrc (1 file)
Plain text file index.php Example Example script
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

  Files folder image Files  /  images  
File Role Description
  Image file test.png Icon Icon image
  Image file test2.jpg Icon Icon image
  Image file test3.png Icon Icon image

  Files folder image Files  /  src  
File Role Description
  Plain text file ImageToHtml.php Class Class source

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