contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
122 stars 57 forks source link

[RFC] Support PictureConfigurationInterface as size parameter in Controller::addImageToTemplate() #1585

Closed ausi closed 6 years ago

ausi commented 6 years ago

This would be very helpful to use Controller::addImageToTemplate() for image sizes that are not stored in the database but are dynamically generated:

\Controller::addImageToTemplate($template, ['singleSRC' => $path, 'size' => new PictureConfiguration(…)]);
leofeyer commented 6 years ago

Thank you @ausi.