Package Data | |
---|---|
Maintainer Username: | Mean-CJ |
Package Create Date: | 2014-01-09 |
Package Last Update: | 2014-01-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:04:53 |
Package Statistics | |
---|---|
Total Downloads: | 13 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
make by https://github.com/tommoor/fastimage
<?php
require 'Fastimage.php';
$uri = "http://farm9.staticflickr.com/8151/7357346052_54b8944f23_b.jpg";
// loading image into constructor
$image = new FastImage($uri);
list($width, $height) = $image->getSize();
echo "dimensions: " . $width . "x" . $height;
// or, create an instance and use the 'load' method
$image = new FastImage();
$image->load($uri);
$type $image->getType();
echo "filetype: " . $type;
FastImage is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with the software. More Information
Releases are available for download from GitHub.