Been trying to get slimsy to make images responsive in a Umbraco 7.2.4 build.
I have followed the tutorial but for some reason the images will simply not render. After install the package and changing the Image media from uplaod to an image cropper, I add the slimmage.js to the master template. When I load the page nothing happens.
So I add the following script as suggested in the tutorial along with the js file:
Hmmm... Looking at the underlying slimmage code it is wrapping/unwrapping images in noscript tags. That would indicate to me that something is breaking halfway through the process.
Has there been any errors logged in the browsers development console?
No output in 7.2.4
Been trying to get slimsy to make images responsive in a Umbraco 7.2.4 build. I have followed the tutorial but for some reason the images will simply not render. After install the package and changing the Image media from uplaod to an image cropper, I add the slimmage.js to the master template. When I load the page nothing happens.
So I add the following script as suggested in the tutorial along with the js file:
Again nothing happens.
Now if i remove the just the js file and reload the page I get the following output and what appears to be slimsy working.
However the image doesn't display and theres no console.log for the slimmage.js to say it's getting the images dfor nthe noscript.
I've tried this tutorial on multiple fresh installs of Umbraco 7.2.4 but always get the same result.
Does anyone have any ideas? Thanks in advance for your time and efforts
Hi,
It seems like SlimResponse didn't register in your web.config. Did you install via a Umbraco package or Nuget?
This is the specific line I think might be missing?
Could you also check your UmbracoTraceLog.txt file for any errors during install?
Jeavon
Forget that, it came through differently in my email due to the no script tags.
Do you have CSS sizing the containing element (div, etc...)?
Hi Jeavon, ive applied the following csss to the containing DIV and IMG element:
Still nothing showing.
Hi Bezmundo,
That output code you posted...
Are the tags supposed to be Html encoded like that or was that a side effect of posting to the forum?
Hi James, I'm pretty sure that's how it was rendered
Hmmm... Looking at the underlying slimmage code it is wrapping/unwrapping images in
noscript
tags. That would indicate to me that something is breaking halfway through the process.Has there been any errors logged in the browsers development console?
I had a similar issue and I fixed it with CSS:
Then my crop displayed correctly.
That's twice now that your post has saved me. This should be marked as the answer! Thanks!
-Roger
is working on a reply...