Having just rebuilt a site from Umv 7.2.1 to 7.2.2 and upgraded Slimsy from Slimmage 0.2 to 0.4.1 I have only one remaining oddity and that is on a slider. Before I start, I need to say that, for this page, both versions produce exactly the same HTML. However, the newer version gallery doesn't appear to initiate and there's an odd 404 in the Chrome console:
I downloaded Slimsy as a whole from GitHub about 24hrs ago and then reuploaded the JS files from GitHub earlier today, once the .map file was available.
The gallery works fine if I just use @pic.Url instead of @pic.GetResponsiveCropUrl("POMHero")
I double checked the crops exist, are spelt correctly and have been to each image and resaved them in the media section, hoping it regenerates the crops.
Generated undefined 404
Having just rebuilt a site from Umv 7.2.1 to 7.2.2 and upgraded Slimsy from Slimmage 0.2 to 0.4.1 I have only one remaining oddity and that is on a slider. Before I start, I need to say that, for this page, both versions produce exactly the same HTML. However, the newer version gallery doesn't appear to initiate and there's an odd 404 in the Chrome console:
All the other images are of the form: /media/1021/look-and-see1.jpg
I'm assuming slimmage is the culprit due to what is inside the 404 error (screenshot follow [I hope!]):-
The partial responsible is this (same on both systems):-
Any guidance appreciated.
Craig
Hi Craig,
Did you get the updated slimmage.js from the Slimsy download or from the slimmage GitHub page?
Also could you post the html (from view source) being rendered?
Thanks,
Jeavon
I downloaded Slimsy as a whole from GitHub about 24hrs ago and then reuploaded the JS files from GitHub earlier today, once the .map file was available.
The gallery works fine if I just use @pic.Url instead of @pic.GetResponsiveCropUrl("POMHero")
I double checked the crops exist, are spelt correctly and have been to each image and resaved them in the media section, hoping it regenerates the crops.
HTML output:-
The slider initiation JS (Look and See Page Slider):-
Cheers,
Craig
All looks ok, in your console window does it report that it has slimmed images?
Could you inspect one of the img elements and see what the url in the Dom is and also what size the element is?
Also could you check that you have max-width:100% on the images.
That was it. Applying "style="max-width:100%"" fixed it.
Thank you so much (again!)
Craig
No worries, this one caught me out as well! I added note on the Slimsy page also for upgrades.
is working on a reply...