Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpslab/image-meta
Image meta parser
https://github.com/gpslab/image-meta
image-meta php
Last synced: about 12 hours ago
JSON representation
Image meta parser
- Host: GitHub
- URL: https://github.com/gpslab/image-meta
- Owner: gpslab
- License: mit
- Created: 2016-09-16T13:50:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T08:05:04.000Z (almost 5 years ago)
- Last Synced: 2024-11-24T09:10:31.008Z (30 days ago)
- Topics: image-meta, php
- Language: PHP
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Latest Stable Version](https://img.shields.io/packagist/v/gpslab/image-meta.svg?maxAge=3600&label=stable)](https://packagist.org/packages/gpslab/image-meta)
[![Total Downloads](https://img.shields.io/packagist/dt/gpslab/image-meta.svg?maxAge=3600)](https://packagist.org/packages/gpslab/image-meta)
[![Build Status](https://img.shields.io/travis/gpslab/image-meta.svg?maxAge=3600)](https://travis-ci.org/gpslab/image-meta)
[![Coverage Status](https://img.shields.io/coveralls/gpslab/image-meta.svg?maxAge=3600)](https://coveralls.io/github/gpslab/image-meta?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/gpslab/image-meta.svg?maxAge=3600)](https://scrutinizer-ci.com/g/gpslab/image-meta/?branch=master)
[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/4cfdc9e9-6bdb-406a-8340-aec2e844d6a1.svg?maxAge=3600&label=SLInsight)](https://insight.sensiolabs.com/projects/4cfdc9e9-6bdb-406a-8340-aec2e844d6a1)
[![StyleCI](https://styleci.io/repos/68383765/shield?branch=master)](https://styleci.io/repos/68383765)
[![License](https://img.shields.io/packagist/l/gpslab/image-meta.svg?maxAge=3600)](https://github.com/gpslab/image-meta)Library for get image meta data
===============================## Installation
Pretty simple with [Composer](http://packagist.org), run:
```sh
composer require gpslab/image-meta
```## Usage
```php
$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](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE