Extension dropped when using vars with image twig tag #552

Open
paxal opened this Issue Jan 6, 2014 · 1 comment

Comments

Projects
None yet
1 participant

paxal commented Jan 6, 2014

When using {% image %} tag with vars=["something"] and no output="whatever", the extension of the file is dropped.

This works in JS/CSS, because the default output name (eg css/*.css and js/*.js) already contains the extension. That is not true with images (images/*).

Example :

<assets>
    {% image "variable_input.{foo}.jpg" vars=["foo", "bar"] debug=true %}
    <url>{{ asset_url }}</url>
    {% endimage %}
</assets>

Gives

<assets>
    <url>images/84f96e1.a_variable_input._1.b</url>
</assets>

Instead of

<assets>
    <url>images/84f96e1.a.b_variable_input._1.jpg</url>
</assets>

paxal commented Feb 17, 2014

Hi,
Any news about this ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment