gpslab / image-meta
Library for get image meta data
v3.0.0
2017-10-13 09:01 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ^1.0
- scrutinizer/ocular: ~1.3
This package is auto-updated.
Last update: 2024-12-13 18:08:07 UTC
README
Library for get image meta data
Installation
Pretty simple with Composer, run:
composer require gpslab/image-meta
Usage
$path = ''; // path to image $analyzer = new ImageMetaAnalyzer(); $data = $analyzer->analyze($path); // access from getters echo $data->width(); echo $data->height(); echo $data->mime(); // access as array $array = $data->toArray(); echo $array['width']; echo $array['height']; echo $array['mime'];
License
This bundle is under the MIT license. See the complete license in the file: LICENSE