Join Discord
Powered by
How can i add support for image sharpening in Umbr...
# help-with-umbraco
s
svampefett
06/20/2024, 3:27 PM
I want to add something like "&sharpen=50" possibility to images:
https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Processing.GaussianSharpenExtensions.html
k
krebil
06/21/2024, 7:16 AM
I think you would need to implement your own WebProcessor that calls the sharpening extension they have some examples in the repo:
https://github.com/SixLabors/ImageSharp.Web/blob/main/src/ImageSharp.Web/Processors/BackgroundColorWebProcessor.cs
m
Mike Chambers
06/21/2024, 7:46 AM
Here's how I added '&tint='
Mike Chambers
06/21/2024, 7:47 AM
attached
https://cdn.discordapp.com/attachments/1253370724593438801/1253617339329413120/tint.cs?ex=667681a0&is=66753020&hm=840d2fe91e99885b26dae63aa6ac329722ff640f0f54a7750eb6cec04e874959&
15
Views
Previous
Next