2017 © Pedro Peláez
 

library fastimagesize

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

image

loumray/fastimagesize

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

  • Monday, September 18, 2017
  • by loumray
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 13 Versions
  • 7 % Grown

The README.md

A faster getimagesize

Build Status Code Coverage Software License Packagist Version Quality Score, (*1)

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file., (*2)

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

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

Requirements

PHP 5.3.0 or greater., (*4)

Installation

  composer require loumray/fastimagesize

Usage

array \FastImageSize\getimagesize(String filepath);

Return array as per PHP getimagesize function, (*5)

Index 0 and 1 contains respectively the width and the height of the image., (*6)

Index 2 is one of the IMAGETYPE_XXX constants indicating the type of the image., (*7)

Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag., (*8)

mime is the correspondant MIME type of the image., (*9)

It will however not return channels and bits index that getimagesize sometimes returns., (*10)

Just like for PHP getimagesize, you can pass any local or remote image to this library as long as it's readable., (*11)

Backward Compatibility

For backward compatibility, the FastImageSize class is still available. So you can still make use of, (*12)

$FastImageSize = new \FastImageSize\FastImageSize();

$imageSize = $FastImageSize->getImageSize(String filepath);

And this will return the array size, (*13)

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

The Versions

18/09 2017

dev-master

9999999-dev https://github.com/loumray/fastimagesize

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

18/09 2017

v2.0.2

2.0.2.0 https://github.com/loumray/fastimagesize

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

14/09 2017

v2.0.1

2.0.1.0 https://github.com/loumray/fastimagesize

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php image fast size getimagesize imagesize

13/09 2017

v2.0.0

2.0.0.0 https://github.com/loumray/fast-image-size

This package provides a getimagesize function that aims to match the usage of PHP getimagesize while trying to avoid the performance cost of downloading the complete file.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

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

11/02 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

 

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