Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 201 | | All time: 8,476 This week: 488 |
|
Description | | Author |
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. | |
|
|
Innovation award
Nominee: 4x |
|
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);
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.