I'm trying to use ImageProcessor with the greyscale filter, but it throws an exception when using just the filter (?filter=greyscale). If I use other attributes, it no longer throws an exception, but does not apply the filter (?height=200&filter=greyscale).
My code to generate the url is as follows:
var imageUrl = image.GetCropUrl(300, 300, furtherOptions: "&filter=greyscale");
Applying filter to image not working?
Hi,
I'm trying to use ImageProcessor with the greyscale filter, but it throws an exception when using just the filter (?filter=greyscale). If I use other attributes, it no longer throws an exception, but does not apply the filter (?height=200&filter=greyscale).
My code to generate the url is as follows:
and this outputs the following url
This does return the image, but no filter is applied i.e. the image is still full colour.
If I query the image directly with just the filter as follows:
then the server throws an exception....
Any one else experience this?
Hi Louis,
That's expected. Filters are disabled by default, you have to enable them in the processing.config file.
Cheers
James
P.S update to the latest version. It doesn't throw, just ignores
Awesome James.... thank you!
No worries, happy to help. :)
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.