I jsut installed a clean 7.2.6 and have trouble with the image cropper... Both alone and with slimsy it wont show any image. Though when inspecting the source, the img tags are kind of correctly populated...
var featureImage = Umbraco.Media(CurrentPage.imageID);
<img src="@featureImage.GetResponsiveImageUrl(1600, 500)" alt="top" />
ERROR Umbraco.Core.Dynamics.DynamicInstanceHelper - [T7/D2] An error occurred finding and executing extension method "GetCropUrl" for type "Umbraco.Web.Models.DynamicPublishedContent". Types searched for extension methods were Umbraco.Web.Models.DynamicPublishedContent.
System.MissingMethodException: Method 'Umbraco.Web.Models.DynamicPublishedContent.GetCropUrl' not found.
at Umbraco.Core.Dynamics.DynamicInstanceHelper.FindAndExecuteExtensionMethod[T](IRuntimeCacheProvider runtimeCache, T thisObject, Object[] args, String name, IEnumerable`1 findMethodsOnTypes)
at Umbraco.Core.Dynamics.DynamicInstanceHelper.TryInvokeMember[T](IRuntimeCacheProvider runtimeCache, T thisObject, InvokeMemberBinder binder, Object[] args, IEnumerable`1 findExtensionMethodsOnTypes)
BINGO! And as written in the docs, if i had cared to scroll to the
bottom...
"Slimsy v1.1.4 includes the update to Slimmage.js v0.4.1 - for this
version of Slimmage you must ensure your images have the
max-width:100% css property."
Ok, for @CurrentPage.GetCropUrl("imageID", "banner") you would need to have a cropper on your content doc type with a property alias of imageID, I don't think that's correct, so it's falling back to the string extension method...
Image cropper acting up
I jsut installed a clean 7.2.6 and have trouble with the image cropper... Both alone and with slimsy it wont show any image. Though when inspecting the source, the img tags are kind of correctly populated...
Returns the follwoing in the markup
But doesnt show any image.... Doing the following:
Shows the image... But it seems to be a different ID. The id of the image in the media library is 1126... not 1003?!?
Looking in the log, theres a troubling entry...
Any ideas?
Troubling indeed! When you say different ID what do you mean exactly?
I was confused by the folder id in the image url. It was "1003" The image id is correctly "1126" all over, so that good.
But cropping is still defunct...
If i copy the image crop url
And paste it into the browser directly i get a correctly cropped image...
Strange, then it should be working, any JS errors from Slimmage?
No js errors whatsoever, but actually
returns blank...
Check it out live: (removed)
Ooops, could you add
before slimmage.js
verbose: true
Done.
Ok, so the Slimsy one is something I hit with Slimmage v0.4 (but of course I forgot), you need to have a max-width on the image.
Try adding this
My original issue is documented here
Now onto that dynamic extension method issue....
Darn it, I even wrote a note here I completely forgot!
BINGO! And as written in the docs, if i had cared to scroll to the bottom...
:) Still worried by your second one about the dynamic extension method, will be checking that shortly.
I haven't been able to reproduce your worrying DynamicInstanceHelper error...
If you can reproduce it, please let me know.
Tried with
It returns
Works... And so does
Ok, for
@CurrentPage.GetCropUrl("imageID", "banner")
you would need to have a cropper on your content doc type with a property alias of imageID, I don't think that's correct, so it's falling back to the string extension method...Ahhh, no i have it as the upload data type on the image media type.
But thats actually a bit unclear from the docs on
https://our.umbraco.org/DOCUMENTATION/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper
You're right, time for a little edit :) I also use the cropper on media items rather than content
is working on a reply...