-
Notifications
You must be signed in to change notification settings - Fork 379
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
Bad Url when using "format" #98
Comments
This happens because template changes the extension and then it cant locale it. But this was done in order to fix the case like having a jpeg image with .png extension. The easiest workaround is to specify Then there is code that does file exists at all these extensions.Another workaround might be to provide as query parameter the real extension in order for it to know what to search but this needs code modification |
+1, I also encountered this. |
This problem still exists. Has anyone solved it yet? |
sgarner i posted a workaround for this (1 minute workaround) |
You mean the That doesn't make any difference, as far as I can tell. |
for me it solved the problem. It needs an array of formats to look. |
I have I am storing images using Gaufrette. If I upload a PNG, the source image is stored in PNG format with a key like "516dc718e76d0216271819.png". This key is the path that gets passed to the twig imagine_filter. Here is what happens:
|
BTW, the workaround only works for the FileSystemResolver, if you are using the StreamResolver then this scenario is simply impossible to get around, see #231 |
see #93 |
I'm still trying to figure out the details on this one. But here is the scenario:
So i looked into this.
/url/to/image.png
which is a real file and a real and valid urlcache/path/to/image.jpg
(this would be the image that should be generated)png
so it never manages to generate a cache fileIf i forcefully switch the url to
png
it runs, caches and no longer has any problems.It seems to me like this force switch of extensions is making the bundle lose the reference to the original and what cache file it should generate. Any ideas on this?
The text was updated successfully, but these errors were encountered: