New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mean-cj/fastimage

Laravel Fastimage Helper Library inspired by tommoor
13
Install
composer require mean-cj/fastimage:dev-master
PHP:>=5.1
License:MIT
Last Updated:Jan 9, 2014
Links: GitHub  ·  Packagist
Maintainer: Mean-CJ

Laravel-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.

make by https://github.com/tommoor/fastimage

Usage

<?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;

References

License

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

Download

Releases are available for download from GitHub.

Related Packages

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

413,065 233
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

22,912 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

17,788 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

12,171 0
php
cline/sequencer

Sequential migration and operation orchestration for Laravel

11,143 0
php