Skip to content

update thumbnail, allow user to choose output format#3714

Open
kouz75 wants to merge 2 commits intobolt:6.1from
shirkalab:thumbnail
Open

update thumbnail, allow user to choose output format#3714
kouz75 wants to merge 2 commits intobolt:6.1from
shirkalab:thumbnail

Conversation

@kouz75
Copy link
Copy Markdown
Contributor

@kouz75 kouz75 commented Apr 28, 2026

Add output format support to thumbnail URLs

  • Add optional format parameter to ThumbnailHelper, ImageExtension, and the thumbnail() Twig function
  • Encode the output format as a filename suffix in the URL (e.g. image.jpg.avif) instead of in the param string
  • Parse the format suffix in ImageController to set Glide's fm parameter and resolve the correct source file
  • Backward compatible: URLs without a format suffix continue to work unchanged

@kouz75 kouz75 marked this pull request as ready for review April 28, 2026 09:43
@kouz75 kouz75 marked this pull request as draft April 30, 2026 14:42
@kouz75 kouz75 marked this pull request as ready for review April 30, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant