Image with overlay text, containing token does not replace in "image_style_url" image

Created on 10 September 2018, over 6 years ago
Updated 12 January 2025, 7 days ago

I have an image style, including textimage layer with text, which is the token `[file:author]`. Everything works fine when I render the image from the theme with ` print render($content['field_image']) ` and I get the desired result. However, when I want to get a URL programatically with `image_style_url('style_name_with_textimage', 'public://file')` the token is not replaced and I see the text "[file:author]" instead for example "George Smith".

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024