- Issue created by @justafish
We can currently generate a srcset value for images passed to the image SDC component for:
Generate srcset for local images on the filesystem that aren't a managed file e.g. modules/contrib/experience_builder/tests/modules/xb_test_sdc/components/image-gallery/gracie.jpg
\Drupal\image\Controller\ImageStyleDownloadController::deliver() does not currently support "shipped files" (aka files shipped as part of a module or theme), even though the logic in \Drupal\image\Entity\ImageStyle::buildUri() suggests it does (surfaced at https://www.drupal.org/project/experience_builder/issues/3535453#comment... 📌 Create an Image SDC that can be included by other SDCs Active ).
Either:
\Drupal\image\Controller\ImageStyleDownloadController::deliver()
to add support for this, or better yet, add support in Drupal core for this.See also https://www.drupal.org/project/experience_builder/issues/3538858 📌 Generate srcset for remote images from allowed 3rd parties Active which is doing the same but for 3rd party images
Active
1.0
Component sources