Add an option to use a failover monitored subdomain to load images (failover-img.mapado.net)
Remove use of img/img1 as we are now multiplexing with http2 Add option allowwebp to enable webp optimization even for not resized images Allow =0 width, with >= height to resize based on set height
Fix malformed imageSlug parameter in buildUrl
Add support for PHP 8.x
- Add support for twig 3
- [BREAKING] Drop support for PHP 7.1
- [Minor BC] Add static types everywhere
- [Minor BC] Remove
UrlBuilderExtenion::getName
method. It was used in twig 1 but is not used in twig >= 2
- Fix issue with Twig extension
- add php-cs-fixer and phpstan
- Added the
withHttpsPrefix
- Allow url starting with
http://
anhttps://
and crop them as well
- Added twig extension
- the extension class is now
Mapado\ImageUrlBuilder\Twig\UrlBuilderExtension
- the
crop
twig filter has been renammed tobuildUrl
- Make project public
- Drop support for PHP < 7.0
- imageCrop require a string a parameter (null was authorized before)
Mapado\ImageBundle\Manager\CropManager
has been renamed toMapado\ImageUrlBuilder\Builder
Mapado\ImageBundle\Manager\CropManager::imageCrop
has been renamed toMapado\ImageUrlBuilder\Builder::buildUrl
Mapado\ImageBundle\Manager\CropManager::httpPrefixedCrop
has been changed to this:$builder->withHttp()->buildUrl($slug);