Login   Register  
PHP Classes
elePHPant
Icontem

PNG Data Encoder and Container

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

  Author  
Picture of wmchris
Name: wmchris <e-mail contact>
Packages: 2 Browse all classes by wmchris Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 25
All time rank: 2379160 in Germany Germany
Week rank: 2190 Up134 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to encode and decode data inside PNG images.

It can take a string of data or a file and creates an image in PNG format that stores the values of the given data. The generated image can be monochrome or colored.

The class can also do the opposite, i.e. recover the data previously stored in a PNG image.

  Classes of wmchris  >  PNG Data Encoder and Container  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PNG Data Encoder and Container
Base name: png-container
Description: Encode and decode data inside PNG images
Version: 1.1
PHP version: 5.1
License: GNU General Public License (GPL)
All time users: 472 users
All time rank: 5108
Week users: 0 users
Week rank: 2046 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
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

  Files folder image Screenshots  
Example Result
File Role Description
Accessible without login Image file example.png Screen Example Result


  Innovation Award  
PHP Programming Innovation award nominee
September 2010
Number 7

Prize: One license of ScriptCase Enterprise edition
PNG is a format that can be used to store images in a lossless compression format.

This means that a PNG image viewer is able to display the original image colors. This is different from the JPEG lossy compression algorithms that do not guarantee that the original colors can be recovered after decompression.

This property of PNG lossless compression can be used to transmit arbitrary data in a compressed format inside PNG images.

This makes possible to pass binary data to JavaScript running on a browser that supports HTML 5 Canvas. After loading a PNG image sent by the server on a Canvas object, it is possible to recover the original uncompressed data passed inside the PNG image.

This class make it easier to take advantage of this possibility by generating PNG images that embed arbitrary binary data.

It can also do the opposite, i.e, decode binary data submitted to the server eventually from JavaScript using HTML 5 Canvas objects.

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.
  Files folder image Files  
File Role Description
Plain text file class.pngcontainer.php Class PNG Container Class
Plain text file class.pngencode.php Class PNG Encoding Class
Plain text file N3decode.js Data N3 Decode Class for JS

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