Copied to clipboard

Flag this post as spam?

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


  • Bezmundo 48 posts 139 karma points
    May 11, 2015 @ 17:22
    Bezmundo
    0

    Slimmage just doesn't display images

    Been trying to get Slimmage to make images responsive in a Umbraco 7.2.4 build. Followed the steps in the following tutorial but the images don't render correctly. This is the output it gives:

    <noscript data-slimmage="true" data-img-src="/media/1004/crash.jpg?anchor=center&amp;mode=crop&amp;width=270&amp;heightratio=0.5962962962962962962962962963&amp;slimmage=true&amp;rnd=130758324100000000" data-img-alt="">"<img src="/media/1004/crash.jpg?anchor=center&amp;amp;mode=crop&amp;amp;width=270&amp;amp;heightratio=0.5962962962962962962962962963&amp;amp;slimmage=true&amp;amp;rnd=130758324100000000" alt="">"</noscript>
    

    This the code that is producing the output above:

    <img src="@featureImage.GetCropUrl(270, 161, ratioMode:ImageCropRatioMode.Height, useCropDimensions: true, furtherOptions:"&slimmage=true")" alt="" />
    

    Both slimmage.js and SlimResponse have been included.

    As you can see in the output the img tag is getting render but its held within "" tags. Has anyone come across this issue before? I've even used the same starter kit in the tutotial on a fresh umbraco install and still nothing.

    Thanks in advance for your help.

Please Sign in or register to post replies

Write your reply to:

Draft