PHPackages                             romaricdrigon/fastimage - 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. romaricdrigon/fastimage

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

romaricdrigon/fastimage
=======================

Finds the size and type of a remote image by fetching as little as needed. PHP port of Ruby fastImage.

0.9.2(10y ago)173.4k↓31.3%2[2 PRs](https://github.com/romaricdrigon/fastimage/pulls)MITPHPPHP &gt;=5.4.0

Since Aug 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/romaricdrigon/fastimage)[ Packagist](https://packagist.org/packages/romaricdrigon/fastimage)[ Docs](https://github.com/romaricdrigon/fastimage)[ RSS](/packages/romaricdrigon-fastimage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

FastImage
=========

[](#fastimage)

FastImage finds the dimensions or filetype of a remote image file given its uri by fetching as little as needed, based on the excellent [Ruby implementation by Stephen Sykes](https://github.com/sdsykes/fastimage).

This version was forked from [Tom Moor PHP port](https://github.com/tommoor/fastimage), and introduced a few changes:

- usage of exceptions
- ability to customize HTTP headers
- namespaced, composer-ready

Usage
-----

[](#usage)

```
