Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagine Bundle and AssetMapper #1608

Open
ebitkov opened this issue Sep 2, 2024 Discussed in #1605 · 0 comments
Open

Imagine Bundle and AssetMapper #1608

ebitkov opened this issue Sep 2, 2024 Discussed in #1605 · 0 comments
Labels
Level: Bug 🐞 This item involves a legitimate regression (bug) to existing functionality.

Comments

@ebitkov
Copy link

ebitkov commented Sep 2, 2024

Discussed in #1605

Originally posted by ebitkov August 19, 2024
The current recommendation to handle assets is to use the AssetMapper component (https://symfony.com/doc/current/frontend/asset_mapper.html), which integrates with the Twig asset function and automatically adds versioning to images.

As stated in the documentation, the bundle should automatically detect the versioning and handle it: https://symfony.com/bundles/LiipImagineBundle/current/asset-versioning.html.

But for me it seems not to do it. I get a "404 - Source image for path could not be found" error.

So I'm wondering: Does this bundle support the new AssetMapper component? And if yes, am I the only one, who has problem with it?


As described in the discussion above, Symfony recommends the relative new AssetMapper component as the preferred way to handle your assets, especially for new projects. The documentation of the Imagine Bundle describes, that it supports asset versioning, but I noticed, that the AssetMapper component is currently not supported.

When using AssetMapper, accessing a file via the asset Twig function and then applying a filter on it results in a 404 - source image for path could not be found error.

Here is a simple reproducer to test with: https://github.com/ebitkov/liip-imagine-bundle-and-asset-mapper

@dbu dbu added the Level: Bug 🐞 This item involves a legitimate regression (bug) to existing functionality. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Level: Bug 🐞 This item involves a legitimate regression (bug) to existing functionality.
Projects
None yet
Development

No branches or pull requests

2 participants