Login   Register  
PHP Classes
elePHPant
Icontem

Image Embedder

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

  Author  
Picture of Karl Holz
Name: Karl Holz is available for providing paid consulting. Contact Karl Holz .
Packages: 11 Browse all classes by Karl Holz Browse all classes by
Country: Canada Canada - PHP jobs in Canada
Age: 32
All time rank: 101726 in Canada Canada
Week rank: 216 Up7 in Canada Canada Up
Innovation award
Innovation award
Nominee: 6x


  Detailed description   Download .zip .tar.gz  
This class can replace images with embedded data in HTML pages.

It can parse HTML documents to locate image tags.

The class can read the images and replace the image tags with URLs that embed the image data in the files, as long the files are not larger than a size limit which is 50K by default.

The original HTML files are renamed and the altered HTML documents are saved back to new files with the same name as the original.

  Classes of Karl Holz  >  Image Embedder  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Image Embedder
Base name: image-embedder
Description: Replace images with embedded data in HTML pages
Version: 0.1
PHP version: 5.0
License: MIT/X Consortium License
All time users: 450 users
All time rank: 5201
Week users: 0 users
Week rank: 2092 Equal
 
  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 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


  Innovation Award  
PHP Programming Innovation award nominee
April 2012
Number 3

Prize: One downloadable copy of Komodo IDE
When you need to send an HTML page to somebody, it may be a complicated process if it uses images or other resources as external files. In that case all the external resources need to be bundled with the main HTML page.

This class implements an alternative solution to avoid needing to bundle external files as separate files.

It replaces all image tags with data URLs that contain the actual image data embedded in the same HTML document, so the images no longer need to be retrieved from separate files.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this 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
Homepage GitHub Homepage

  Files folder image Files  
File Role Description
Plain text file img_fixer.php Class shell script/class
Accessible without login Plain text file README.txt Lic. readme & licence
Accessible without login Plain text file site_scanner.php Appl. php cli utility to scan all xhtml/well formed html files in current directory and encode the images under 50k

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