There a couple of things that jump out with Image Processor, especially if you using the latest version.
The first question is, have you enabled the "blur" function in the config file?
This can be done by adding enabled="true" to the gaussianBlur plugin element, as shown below.
Can you share the entire code for the view that this is generated on? It looks like something is combining your src attribute with your href attribute.
Getting started with Image Processor
I am trying to get started with Image Processor and having problems.
In my template, I add this line
The HTML ouptput is this
In the Browser the image is rendered as missing file. I I delete "?blur=10,sigma-1.5,threshold-10'>" everything is fine.
What am I doing wrong?
Hi Christian,
There a couple of things that jump out with Image Processor, especially if you using the latest version. The first question is, have you enabled the "blur" function in the config file?
This can be done by adding enabled="true" to the gaussianBlur plugin element, as shown below.
The help link (link below) also indicates that using the , separator is legacy and you should be using the & instead.
Help file for blur
Hope that helps,
Nik
Hi Nik,
thanx!
Where can I find this file?
Do you know which functions are enabled by default?
Hi Christian,
The file is located in the Configs folder, in a sub folder called "imageprocessor".
Off the top of my head no, I'm not sure which are enabled by default however if you check the file you'll be able to see.
This change was (I believe) to address a potential security concern where an attacker could potentially abuse the end points.
Nik
Found the comfiguration :-). It works!
Now I tried the functin resize with
The HTML ouptput is this
In the Browser the image is rendered as missing file.
Can you help?
From the looks of the url structure it looks correct. Nothing stands out as being wrong I'm afraid.
Are there any errors in the debug console in your browser?
Here you can find the output! Strange somehow.
Can you share the entire code for the view that this is generated on? It looks like something is combining your src attribute with your href attribute.
This is the code of the partial view
As Paul has noted, you are missing the closing tag on the src attribute of your img tag.
Works! Thanx!
You may want to do a bit more checking to see if the image is null or not...
and maybe use the Url method to spit out your ImageProc stuff. Avoids typos then :-)
Alt tag on the image too, for good SEO :-)
is working on a reply...