We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 100x100 large image $image = new Image('/path/to/image.jpg', $imagine); $config = (new PictureConfiguration()) ->setSize((new PictureConfigurationItem()) ->setResizeConfig((new ResizeConfiguration()) ->setWidth(50) ) ->setDensities('1x, 2x, 3x, 4x') ) ; $pictureGenerator->generate($image, $config, new ResizeOptions())->getImg('/path/to')['srcset']; // cache/dir/4/image-de332f09.jpg 1x, image.jpg 2x, image.jpg 2x, image.jpg 2x
Duplicate sources should get removed from $srcset in PictureGenerator.php:99.
$srcset
The text was updated successfully, but these errors were encountered:
Fix #21 bug with duplicate sources in srcset attribute
b2681f9
Fixed in b2681f9.
Sorry, something went wrong.
ausi
No branches or pull requests
Duplicate sources should get removed from
$srcset
in PictureGenerator.php:99.The text was updated successfully, but these errors were encountered: