2017 © Pedro PelĂĄez
 

library png-chunks

Simple PHP class to handle(get, add, remove) PNG chunks.

image

pixelcrab/png-chunks

Simple PHP class to handle(get, add, remove) PNG chunks.

  • Tuesday, February 13, 2018
  • by CSoellinger
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP PngChunk Class Build Status Coverage Status

Get, add or remove chunks to PNG. This class is more a personal helper for other projects but could be nice for others too. Feel free to extend the code with new features., (*1)

Installation

With composer

composer require pixelcrab/png-chunks

With source

Download the source code from releases or the file PngChunks.php directly from the repository. Include the file in your project and start using it., (*2)

Usage

<?php
// Use namespace
use PHPPNG\PNGChunks\PNGChunks;

// Initialize class. Param is a valid PNG file.
$png = new PngChunk(__DIR__ . '/image.png');

// Fetch all tEXt chunks
$chunks = $png->getChunks('tEXt');

// Remove all tEXt chunks
$png->removeChunks('tEXt');

// Add new tEXt chunk
$png->addChunk('tEXt', 'custom', 'my value');

// Some methods are chainable
$png
  ->removeChunks('tEXt')
  ->addChunk('tEXt', 'custom', 'my value');

Want spend me some BTC, ETC or BTH

  • Bitcoin (BTC): 19FXuMSR1yoApqZ9VkY1e8bhxHp4fqK4ZB
  • Ether (ETC): 0x45dAC2c1647B505Dc3a4E48FAa3443bbEAf6eBF2
  • Bitcoin Cash (BTH): qpdgpgp78r5ql8c9tjtkc4ex82s09hc4a5tsralx4g

The Versions

13/02 2018

dev-master

9999999-dev https://github.com/CSoellinger/php-class-png-chunks

Simple PHP class to handle(get, add, remove) PNG chunks.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Christopher Söllinger

php class get png remove add chunks

13/02 2018

1.0.1

1.0.1.0 https://github.com/CSoellinger/php-class-png-chunks

Simple PHP class to handle(get, add, remove) PNG chunks.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Christopher Söllinger

php class get png remove add chunks

13/02 2018

1.0.0

1.0.0.0 https://github.com/CSoellinger/php-class-png-chunks

Simple PHP class to handle(get, add, remove) PNG chunks.

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Christopher Söllinger

php class get png remove add chunks