2017 © Pedro Peláez
 

library fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

image

marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  • Monday, October 23, 2017
  • by marc1706
  • Repository
  • 6 Watchers
  • 48 Stars
  • 504,759 Installations
  • PHP
  • 13 Dependents
  • 0 Suggesters
  • 10 Forks
  • 5 Open issues
  • 13 Versions
  • 13 % Grown

The README.md

fast-image-size library

About

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file., (*1)

It currently supports the following image types:, (*2)

  • BMP
  • GIF
  • ICO
  • IFF
  • JPEG 2000
  • JPEG
  • PNG
  • PSD
  • TIF/TIFF
  • WBMP
  • WebP

Requirements

PHP 5.3.0 or newer is required for this library to work., (*3)

Installation

It is recommend to install the library using composer. Just add the following snippet to your composer.json:, (*4)

  "require": {
    "marc1706/fast-image-size": "1.*"
  },

Usage

Using the fast-image-size library is rather straightforward. Just create a new instance of the main class:, (*5)

$FastImageSize = new \FastImageSize\FastImageSize();

Afterwards, you can check images using the getImageSize() method:, (*6)

$imageSize = $FastImageSize->getImageSize('https://example.com/some_random_image.jpg');

You can pass any local or remote image to this library as long as it's readable., (*7)

If the library is able to determine the image size, it will return an array with the following structure (values and type might of course differ depending on your image):, (*8)

$imageSize = array(
    'width' => 16,
    'height' => 16,
    'type' => IMAGETYPE_PNG,
);

Automated Tests

The library is being tested using unit tests to prevent possible issues., (*9)

Build Status Code Coverage Scrutinizer Code Quality, (*10)

License

The MIT License (MIT), (*11)

Credits

Sample files of WebP format by Google: WebP Image Galleries, (*12)

The Versions

23/10 2017

dev-master

9999999-dev https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

php image fast size getimagesize imagesize

23/10 2017

1.x-dev

1.9999999.9999999.9999999-dev https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

php image fast size getimagesize imagesize

23/10 2017

v1.1.4

1.1.4.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

php image fast size getimagesize imagesize

18/09 2017

dev-ticket/43

dev-ticket/43 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

php image fast size getimagesize imagesize

15/09 2017

dev-ticket/39

dev-ticket/39 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-mbstring *

 

The Development Requires

php image fast size getimagesize imagesize

26/03 2017

v1.1.3

1.1.3.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

30/10 2016

dev-ticket/25

dev-ticket/25 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

 

The Development Requires

php image fast size getimagesize imagesize

30/10 2016

v1.1.2

1.1.2.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

08/06 2016

v1.1.1

1.1.1.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

21/08 2015

v1.1.0

1.1.0.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

09/04 2015

v1.0.2

1.0.2.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

08/04 2015

v1.0.1

1.0.1.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

07/04 2015

v1.0.0

1.0.0.0 https://www.m-a-styles.de

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize