Repository navigation
[Image] Add the Imagor bridge - #4151
Merged
Merged
Conversation
Kocal
force-pushed
the
imagor-image-bridge
branch
from
October 31, 2026 08:36
5a798ca to
8b0714f
Compare
Member
|
Thanks for the PR, Tac! I pushed a few changes:
I also changed one behavior: when Before, the app signed a URL to any host whenever Without |
Kocal
approved these changes
Oct 31, 2026
Member
|
Thank you @tacman. |
Member
|
Recipe : symfony/recipes#1624 |
Kocal
added a commit
to Kocal/recipes
that referenced
this pull request
Oct 31, 2026
| Q | A | ------------- | --- | License | MIT | Doc issue/PR | symfony/ux#4151
Kocal
added a commit
to Kocal/recipes
that referenced
this pull request
Nov 4, 2026
| Q | A | ------------- | --- | License | MIT | Doc issue/PR | symfony/ux#4151
symfony-recipes-bot
pushed a commit
to symfony/recipes
that referenced
this pull request
Nov 5, 2026
| Q | A | ------------- | --- | License | MIT | Doc issue/PR | symfony/ux#4151
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
symfony/ux-imagor-image, a URL provider for the self-hosted Imagor image server. An application serving/uploads/photo.jpgcan keep that source path by configuring the image server and source origin separately:The implementation is modeled on the existing imgix bridge: provider/factory structure, Composer packaging, PHPUnit tests and renderer snapshots. It uses the same conditional bundle registration and monorepo split conventions, with Imagor-specific URL construction and signing. It supports HTTP for local deployments (
secure=false), custom ports, and reverse-proxy prefixes. When no origin is set, it also accepts loader/storage keys and absolute HTTP(S) sources. Whenoriginis set, every source resolves under it. An absolutesrccannot point the server at another host. The complete source is encoded before signing so source query strings and filenames cannot become processing instructions.Width and height map to
WIDTHxHEIGHT, cover to Imagor's centered crop, contain tofit-in, and quality/format to filters. A bounded set of image operations preserves filter order; boolean filters can be omitted with false. Common format and quality cannot be replaced through operations. PNG, JPEG, WebP and AVIF are advertised. Automatic format negotiation is not advertised because it requires server configuration;ux_picture()supplies explicit format alternatives.Signed URLs use Imagor-compatible padded URL-safe Base64 HMAC, with SHA-1 (stock default), SHA-256 or SHA-512 and optional character truncation. The signing configuration must match the server. URLs without a key use
unsafe, intended for development.See the Imagor bridge README for configuration, signing, parameter mapping and supported operations.
Validation
git diff --check.The split mapping is included. Provisioning the split repository and a Symfony Flex recipe remains a maintainer follow-up.