| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of wmchris | > | PNG Data Encoder and Container | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Graphics | Colors, images, charts and picture formats | View top rated classes |
| Innovation Award | ||
![]() 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 | ||
| File | Role | Description |
|---|---|---|
| Class | PNG Container Class | |
| Class | PNG Encoding Class | |
| Data | N3 Decode Class for JS |
| Download all files: png-container.tar.gz png-container.zip |