Skip to content

Releases: oscarotero/Embed

2.2.3

12 May 18:01
Compare
Choose a tag to compare

New adapter for flickr

2.2.2

11 May 18:02
Compare
Choose a tag to compare

Fixed exception when the <body> element is not found #58

2.2.1

09 May 12:04
Compare
Choose a tag to compare
  • title and description returns the values html-decoded, to avoid escaped entities like &nbsp;
  • Fixed google maps to work with other domains than .com
  • Fixed aspectRatio that returns different values if width and height are not called before #57

2.2

24 Mar 22:48
Compare
Choose a tag to compare
2.2

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

2.1.2

13 Mar 16:07
Compare
Choose a tag to compare

Fixed SoundCloud clips with no artwork causes error #52

2.1.1

24 Feb 17:59
Compare
Choose a tag to compare

Fixed Facebook adapter (missing namespace) #51

2.1.0

22 Feb 23:51
Compare
Choose a tag to compare
  • Improved the capture of images in the html. The images with rel="nofollow" will be ignored
  • More info provided by each image: width, height, mime, size, url and providers in which appears
  • The $info->images array is numeric.
  • Improved the way of choose the main image. Now the bigger image found in the first provided will be choosen by default.

2.0.1

16 Feb 18:14
Compare
Choose a tag to compare

New methods getImagesUrl() and getProviderIconsUrls() to retrieve only the image urls, without check the mimetype and dimmensions. This fixes #50

2.0

15 Feb 17:51
Compare
Choose a tag to compare
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',
      )
    );
    */

1.8.3

22 Jan 12:03
Compare
Choose a tag to compare
  • fixed Resolver that cannot be configured #46