gpslab/image-meta

Library for get image meta data

v3.0.0 2017-10-13 09:01 UTC

This package is auto-updated.

Last update: 2024-03-13 16:41:23 UTC


README

Latest Stable Version Total Downloads Build Status Coverage Status Scrutinizer Code Quality SensioLabs Insight StyleCI License

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