Skip to content

2.2

Compare
Choose a tag to compare
@oscarotero oscarotero released this 24 Mar 22:48
· 927 commits to master since this release

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