Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In media.html.twig I can use the following variables:
name: Name of the media
content: Media content.
Then if I select the format option "URL to image" in "/admin/structure/media/manage/vector_illustration/display/content" then I get the image url just with: