s3fs version of theme_image_style()

Created on 4 March 2014, almost 11 years ago
Updated 4 January 2025, 5 days ago

I'm using s3fs for all files on my site, and I have a case in my theming where I would like to programatically theme an image using an image style. For locally stored files, I would use theme_image_style():

theme('my_style', $image_path)

However, according to the API page, "This function does not work with images outside the files directory nor with remotely hosted images."

What is the s3fs function to use to do the same thing? The closest function I've found is _s3fs_image_style_deliver(), but judging by the function name it is an internal function only (looks like it's a page callback), and it doesn't return the themed output. Plus, the doc block says it is a version of image_style_deliver(), which doesn't return any themed output. There is no hook_theme implementation, so no theme function that I can see.

Thanks.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wonder95

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.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 will reach end of life on January 5th.

    The 7.x releases of S3FS does not have any additional planned releases.

    The functions in this issue do not appear to exist in Drupal 8+ as such I am going to close this support request as outdated.

Production build 0.71.5 2024