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