You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an issue when using this kind of params directly in Twig like {{ "image.jpg" | imresize("100x100>") }}
With the actual code it results with a sh: 1: cannot create /image.jpg error.
(no problem if the resize param is set in config file)
The problem is with the > (or <) which leads to errors in the creation of the cache directory.
I made a quickfix by updating the pathify() method in Manager.php and using it more in the same file, but I don't know if it's the best way to do it...
Maybe someone with a better knowledge of this bundle can tell me if it's the right way.
(I can make a PR if required)
The text was updated successfully, but these errors were encountered:
Yes, it works perfectly using config file.
But sometimes (...ok, when I'm lazy) it can be useful to use it directly from twig (as it's possible, why not using it ;))
I've made a PR so you can see (#17)
There's an issue when using this kind of params directly in Twig like
{{ "image.jpg" | imresize("100x100>") }}
With the actual code it results with a
sh: 1: cannot create /image.jpg
error.(no problem if the resize param is set in config file)
The problem is with the
>
(or<
) which leads to errors in the creation of the cache directory.I made a quickfix by updating the
pathify()
method in Manager.php and using it more in the same file, but I don't know if it's the best way to do it...Maybe someone with a better knowledge of this bundle can tell me if it's the right way.
(I can make a PR if required)
The text was updated successfully, but these errors were encountered: