Skip to content

Allow custom filenames for on-the-fly image manipulations #5384

Description

@verveuster

It would be useful if ExpressionEngine's native image manipulation modifiers, especially :webp, allowed an optional custom output filename.

For example:

{image_field:webp width="350" quality="82" filename="portrait"}

could generate something like:
portrait-350.webp

instead of the current hashed cache filename.

The current hashed filenames make sense for cache uniqueness, but for public-facing image URLs it would be helpful to have clean, predictable filenames while still keeping EE's existing caching behaviour internally.

A possible implementation could keep the hash/cache logic behind the scenes, while exposing a cleaner filename or allowing a filename="" parameter.

Use case:
We use EE's on-the-fly WebP conversion for images across a site and want readable, stable image URLs without having to build a custom add-on.

That should be enough for a useful FR without overcomplicating it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions