PHPackages                             nazieb/flashimage - 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. nazieb/flashimage

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

nazieb/flashimage
=================

Get the type &amp; size information of an image by fetching as little as possible

v1.0.0(10y ago)017MITPHPPHP &gt;=5.3.0

Since Sep 25Pushed 10y agoCompare

[ Source](https://github.com/nazieb/flashimage)[ Packagist](https://packagist.org/packages/nazieb/flashimage)[ Docs](https://github.com/nazieb/flashimage)[ RSS](/packages/nazieb-flashimage/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

FlashImage
==========

[](#flashimage)

Get the type &amp; size information of an image by fetching as little as possible.

This project is a fork of [Fastimage library by Tom Moor](https://github.com/tommoor/fastimage), which itself is a port of [Ruby implementation by Stephen Sykes](https://github.com/sdsykes/fastimage)

The main difference with the original library is that this one uses a PSR-7 compatible HTTP adapter to fetch image from the web, thanks to [Ivory HTTP library by Eric Geloen](https://github.com/egeloen/ivory-http-adapter)

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

[](#installation)

The recommended way to install FlashImage is by using [Composer](https://getcomposer.org)

To add FlashImage as dependency to your project, add a dependency on nazieb/flashimage to your project's composer.json file.

```
{
	"require": {
		"nazieb/flashimage": "~1.0"
	}
}
```

Usage
-----

[](#usage)

The main class of the FlashImage is the `Flashimage\Factory` which will load the image and initialize all the resource needed to fetch the data

```
$uri = "http://farm9.staticflickr.com/8151/7357346052_54b8944f23_b.jpg";

// loading image into constructor
$image = new Flashimage\Factory($uri);
list($width, $height) = $image->getSize();
echo "dimensions: " . $width . "x" . $height;

// or, create an instance and use the 'load' method
$image = new Flashimage\Factory();
$image->load($uri);
$type = $image->getType();
echo "filetype: " . $type;
```

### Supported Formats

[](#supported-formats)

Currently FlashImage only support 4 types of image: `png, jpeg, bmp, gif`.

More to come, or if you think you can contribute to support more formats, please send a Pull Request.

References
----------

[](#references)

-
-
-
-
-
-

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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

Unknown

Total

1

Last Release

3934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6367d2e86a1c524046b590ec32c36682b76bb88d9394cfe890323321c64c04f?d=identicon)[nazieb](/maintainers/nazieb)

---

Top Contributors

[![tommoor](https://avatars.githubusercontent.com/u/380914?v=4)](https://github.com/tommoor "tommoor (10 commits)")[![gr0g](https://avatars.githubusercontent.com/u/759399?v=4)](https://github.com/gr0g "gr0g (8 commits)")

---

Tags

fastimageimage sizeruby portflashimage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nazieb-flashimage/health.svg)

```
[![Health](https://phpackages.com/badges/nazieb-flashimage/health.svg)](https://phpackages.com/packages/nazieb-flashimage)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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