PHPackages                             gpslab/image-meta - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. gpslab/image-meta

ActiveLibrary[Image &amp; Media](/categories/media)

gpslab/image-meta
=================

Library for get image meta data

v3.0.0(8y ago)14801MITPHPPHP &gt;=5.4.0CI failing

Since Sep 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gpslab/image-meta)[ Packagist](https://packagist.org/packages/gpslab/image-meta)[ Docs](https://github.com/gpslab/image-meta)[ RSS](/packages/gpslab-image-meta/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/7f7bfc02679775b3a3b59338d508c73e8e33a03788afab085c8077c2c1fd306e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030266c6162656c3d737461626c65)](https://packagist.org/packages/gpslab/image-meta)[![Total Downloads](https://camo.githubusercontent.com/0ce5a6758b89cecc2a2ec65834d864447a5f51381796a093a3475b197bdd0ba0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030)](https://packagist.org/packages/gpslab/image-meta)[![Build Status](https://camo.githubusercontent.com/fa74464949cb80cb2c1c1abcd73a9494b54f0b2daa64a03b361b643e10890e08/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030)](https://travis-ci.org/gpslab/image-meta)[![Coverage Status](https://camo.githubusercontent.com/72bbcd13416753dec2a07e7fa96b09aac1e31165d9033fc3bbcdba52f6280add/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030)](https://coveralls.io/github/gpslab/image-meta?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6791daf58e6c010b77b625d6a4435b617c2729f9b191c2777ded9cab5bbeb972/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/gpslab/image-meta/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/4c02ced969091eab7017f6fb87e32d733f2f7a2ff9caafb4a2baa18dccb94eed/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f34636664633965392d366264622d343036612d383334302d6165633265383434643661312e7376673f6d61784167653d33363030266c6162656c3d534c496e7369676874)](https://insight.sensiolabs.com/projects/4cfdc9e9-6bdb-406a-8340-aec2e844d6a1)[![StyleCI](https://camo.githubusercontent.com/4d521a017debbb8176e35979f24c162a3297be527e72c8c2b1ac134878651593/68747470733a2f2f7374796c6563692e696f2f7265706f732f36383338333736352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/68383765)[![License](https://camo.githubusercontent.com/4668d69ddc2633ce22172089a99961e51ed39ee942eb17cc20c99a00fdb6c270/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6770736c61622f696d6167652d6d6574612e7376673f6d61784167653d33363030)](https://github.com/gpslab/image-meta)

Library for get image meta data
===============================

[](#library-for-get-image-meta-data)

Installation
------------

[](#installation)

Pretty simple with [Composer](http://packagist.org), run:

```
composer require gpslab/image-meta
```

Usage
-----

[](#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
-------

[](#license)

This bundle is under the [MIT license](http://opensource.org/licenses/MIT). See the complete license in the file: LICENSE

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~130 days

Total

4

Last Release

3183d ago

Major Versions

v1.0.0 → v2.0.02016-12-22

2.0.x-dev → v3.0.02017-10-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a6415c83577efe7b70d9ae4a3bb12958adc11c16e530ff844ff217b0fd0c54a?d=identicon)[Peter Gribanov](/maintainers/Peter%20Gribanov)

---

Top Contributors

[![peter-gribanov](https://avatars.githubusercontent.com/u/1954436?v=4)](https://github.com/peter-gribanov "peter-gribanov (38 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

image-metaphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gpslab-image-meta/health.svg)

```
[![Health](https://phpackages.com/badges/gpslab-image-meta/health.svg)](https://phpackages.com/packages/gpslab-image-meta)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
