Could you elaborate on the "I don't see nothing" part?
Can you see the img-tag in the code, without any src-attribute, or is the img-tag simply not rendered at all ?
Cheers
Mads
Edit:
Ok, I did not read the answers careful enough, sorry :)
The code, imo, looks fine though, not really sure whats going on, sorry.
I'm assuming that you are not using NuGet?
Find the ImageProcessor dll's in the bin folder -> properties -> details -> product version
Then match that to the newest versions -> http://imageprocessor.org/
Umbraco Crop Image "on the fly" not work for child
Hello :)
I have this problem: if I would like to crop an image "on the fly" and I am in the CurrentPage I can do it without problem, using this code:
If instead I want to do the same thing with a child page, I don't see nothing... This is the code:
If instead I use this code (not crop "on the fly"), it works:
Where am I wrong?
Hi Bob,
What do you mean by doesn't work. Is there an image rendered or is it just not cropped? Could you share a sample url that is generated?
Cheers
James
Hi James, the problem is that the image is not rendered.
The result of the code:
is:
Nobody can help me?
Hi Bob
Could you elaborate on the "I don't see nothing" part?
Can you see the img-tag in the code, without any src-attribute, or is the img-tag simply not rendered at all ?
Cheers Mads
Edit: Ok, I did not read the answers careful enough, sorry :)
The code, imo, looks fine though, not really sure whats going on, sorry.
Quick question, what version of Umbraco 7 are you using ?
7.2.4
Can you try to use the same code I post before in a test website? So we can see if it's a server problem or a Umbraco's bug...
I might, but firstly I would suggest that you start by ensuring that you are using the latest version of ImageProcessor in your project.
Also, you could check the change logs for version 7.2.5-7.2.8 to see if anything related to GetCropUrl is mentioned and fixed.
How can I check if I use the latest version of ImageProcessor?
I'm assuming that you are not using NuGet?
Find the ImageProcessor dll's in the bin folder -> properties -> details -> product version
Then match that to the newest versions -> http://imageprocessor.org/
Yes I don't use NuGet.
My version is the 1.9.5.0
The latest is 2.2.8
I would suggest that you upgrade then. Both Core and Web. It might not help at all, but it will hopefully be easier to provide support.
How can I update? I only need to replace the ImageProcessor dlls?
If you are running the site as a Website (Visual Studio term), then yes, that is correct, replace the two dll's in the bin folder.
I'd found a work-around... If I want to crop an image "on the fly", I add this string to the src tag of the image:
is working on a reply...
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.