Download the PHP package nazieb/flashimage without Composer
On this page you can find all versions of the php package nazieb/flashimage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nazieb/flashimage
More information about nazieb/flashimage
Files in nazieb/flashimage
Package flashimage
Short Description Get the type & size information of an image by fetching as little as possible
License MIT
Homepage https://github.com/nazieb/flashimage
Informations about the package flashimage
FlashImage
Get the type & size information of an image by fetching as little as possible.
This project is a fork of Fastimage library by Tom Moor, which itself is a port of Ruby implementation by Stephen Sykes
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
Installation
The recommended way to install FlashImage is by using Composer
To add FlashImage as dependency to your project, add a dependency on nazieb/flashimage to your project's composer.json file.
`
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
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
- https://github.com/tommoor/fastimage
- https://github.com/sdsykes/fastimage
- http://pennysmalls.com/find-jpeg-dimensions-fast-in-pure-ruby-no-ima
- http://snippets.dzone.com/posts/show/805
- http://www.anttikupila.com/flash/getting-jpg-dimensions-with-as3-without-loading-the-entire-file/
- http://imagesize.rubyforge.org/
License
MIT