Bot releases are visible (Hide)
Published by oscarotero over 9 years ago
New imagesBlacklist
option to define the images you want to avoid (Thank, @Soullivaneuh). You can use *
and ?
special characters in this way:
$config = [
'adapter' => [
'config' => [
'minImageWidth' => 16,
'minImageHeight' => 16,
'imagesBlacklist' => [
'http://example.com/full/path/to/image.jpg', //images with this exact url
'https?://ugglyimages.com/*', //images begining by "http://ugglyimages.com/" (http or https)
'*/bad_image.gif', //image ending in "/bad_image.gif"
'https?://test.*/*.png/', //more complex pattern
]
]
]
];
Published by oscarotero over 9 years ago
Fixed SoundCloud clips with no artwork causes error #52
Published by oscarotero over 9 years ago
Fixed Facebook adapter (missing namespace) #51
Published by oscarotero over 9 years ago
$info->images
array is numeric.Published by oscarotero over 9 years ago
New methods getImagesUrl()
and getProviderIconsUrls()
to retrieve only the image urls, without check the mimetype and dimmensions. This fixes #50
Published by oscarotero over 9 years ago
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',
)
);
*/
Published by oscarotero over 9 years ago
Published by oscarotero almost 10 years ago
Published by oscarotero almost 10 years ago
Fixed composer configuration #39
Published by oscarotero almost 10 years ago
Embed\Request
class and Embed\RequestResolvers\RequestResolverInterface
//Old style:
Embed\Request::setResolverConfig(array(
'userAgent' => 'My spider',
'connectionTimeout' => 10
));
$info = Embed\Embed::create($url);
//New style
$info = Embed\Embed::create($url, array(
'resolver' => array(
"options" => array(
CURLOPT_USERAGENT => 'My spider',
CURLOPT_CONNECTTIMEOUT => 10
)
)
));
Published by oscarotero about 10 years ago
Published by oscarotero about 10 years ago
facebookProvider
to truePublished by oscarotero about 10 years ago
Published by oscarotero about 10 years ago
Fixed a bug that return null in imageWith/imageHeight in some circunstances
Published by oscarotero over 10 years ago
Ignored the demos in the releases
Published by oscarotero over 10 years ago
Moved the demos to a subdirectory
Published by oscarotero over 10 years ago
Published by oscarotero over 10 years ago
Published by oscarotero over 10 years ago
Published by oscarotero over 10 years ago
Added automatic redirections for google url shortener and google translate