2.0
-
Removed support for php 5.3. If you need support for this, use the 1.x version.
-
Removed FastImage to get the images dimmension. Now we have
Embed\ImageInfo\Curl
that can execute parallel requests and uses getimagesizefromstring to get the image dimmensions. -
Changed the configuration array. Now it has subarrays to provide options for adapters, providers, resolvers and images. See readme for more info.
-
The images and providerIcons properties returns not only the url but also the mimetype and dimmensions:
//v.1x var_dump($info->images); /* array( 'http://example.com/images/image1.jpg', 'http://example.com/images/image2.jpg' ); */ //v2.x var_dump($info->images); /* array( 'http://example.com/images/image1.jpg' => array( 0 => 200, 1 => 500, 2 => 'image/jpeg', ), 'http://example.com/images/image2.jpg' => array( 0 => 320, 1 => 545, 2 => 'image/jpeg', ) ); */