Hi again,
It looks that I found a root cause. Decided to check the example (https://github.com/SixLabors/ImageSharp.Web/blob/main/samples/ImageSharp.Web.Sample/Startup.cs) one more time and found that I have a wrong position of image processing middleware.
So, final version of Configure method is:
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
/* geta-notfoundhandler begin */
app.UseNotFoundHandler();
/* geta-notfoundhandler end */
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
// Add the image processing middleware.
app.UseBaaijteOptimizelyImageSharp();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapContent();
endpoints.MapControllers();
endpoints.MapRazorPages(); /* required for "geta-notfoundhandler" as well */
});
}
Hi,
Short info: CMS 12.3, DXP is used (tested on "Integration" only for now), Azure Blob storage is configured.
I am trying to configure PictureRenderer.Optimizely in order to generate <picture> elements. The html looks good, but the image is not resized.
Example of html:
As I understand the relations of the modules is the following one:
My dependencies:
Part of ConfigureServices method.
My Configure method (only the last row in the method is related to this task).
I looked through example: https://github.com/SixLabors/ImageSharp.Web/blob/main/samples/ImageSharp.Web.Sample/Startup.cs
and tried to add ".AddProcessor<ResizeWebProcessor>()" explicitly, but it didn't help.
It is worth to mention that readme file for module Baaijte.Optimizely.ImageSharp.Web contains statement : DO NOT add other
SixLabors.ImageSharp.Web
settings!!So, I haven't tried to use any other options...
Will be glad to know if somebody uses the same modules and has a working configuration. Thank you in advance.
Best regards,
Maxim