Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonathanprince/base64_img_php

PHP Class for saving base64 data as an image
https://github.com/jonathanprince/base64_img_php

Last synced: 11 days ago
JSON representation

PHP Class for saving base64 data as an image

Awesome Lists containing this project

README

        

# base64_img_php

PHP Class for base64 image encoding and decoding

##Usage

```php

require 'path/to/class/b64img.php';

// encode file as data uri
$image1 = new B64img('./some_image.png');
$data_URI = $image1->get_data();

// save data uri as file
$image2 = new B64img($data_URI);
$image2->save_as('./new_image.png');

```