Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mads Sørensen 188 posts 433 karma points
    Aug 27, 2013 @ 10:33
    Mads Sørensen
    0

    Eksponent CropUp and Responsive images

    Hey Guys

    Im using the Eksponent CropUp tool for a responsive projekt. But i just cant figure out how to use the "ResponsiveByMediaId" the rigth way.

    My code looks like

    <xsl:if test="specialImage != ''">
    
    <xsl:value-of select="Eksponent.CropUp:ResponsiveByMediaId(specialImage, 'progressive200', null, 'width:100px;height:100px', null)" disable-output-escaping="yes" />
    
    </xsl:if>
    

    And it outputs something like this:

    <script src="/Scripts/CropUp.js" type="text/javascript">
    <div class="crop-up" data-upscale-step="200" data-upscale-url="/CropUp/{w}x{h}R/media/1001/Certifikat.jpg" data-zoom="true" data-box="0,0,1,1" data-gravity="0.5110404,0.3623338" style="width:100px;height:100px"></div>
    

    Hope the someone can help me out :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies