Closed infofromca closed 5 years ago
Two solutions:
We could also do both.
However you can already configure it from your module, you can call AddImageSharpCore
a second time and override anything you want. We tried it already to customize the compression levels.
overriding is not the best choice. my situation is that in my special situation(module), i do not want to apply public static int[] Sizes = new[] { 16, 32, 50, 100, 160, 240, 480, 600, 1024, 2048 }; because editing image is inside admin panel. but I also want to keep applying public static int[] Sizes = new[] { 16, 32, 50, 100, 160, 240, 480, 600, 1024, 2048 }; when in normal resize -- external url.
because editing image is inside admin panel.
I don't understand this statement. Can you rephrase what you are doing?
i do not want to apply public static int[] Sizes = new[] { 16, 32, 50, 100, 160, 240, 480, 600, 1024, 2048 }; because editing image is inside admin panel.
means
i do not want to apply public static int[] Sizes = new[] { 16, 32, 50, 100, 160, 240, 480, 600, 1024, 2048 }; in the dashboard for editing image .
================== there are 2 situation. 1- use my custom feature in one case 2--keep use the original feature of OrchardCore.Media module in another case
You can customize these settings now.
In my own module, I want to implement my own services.AddImageSharpCore for ImageSharp. 1---in this way, I need to remove it from OrchardCore.Media module, I think. 2---how?, can orchard do that? it seems that asp.net core can not do that directly. thanks andy