Developer forum

Forum » CMS - Standard features » MagicScaler issues in 9.13.11

MagicScaler issues in 9.13.11

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I tried to implement MagicScaler instead of ImageGlue but there are some hardcoded assembly dependencies which forced me to change web.config

 

Repro steps:

 

This didn't work (after the last upgrade of DW's provider), so I had to:

      <dependentAssembly>
        <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
      </dependentAssembly>

 

This got it to work, but I don't like having to change web.config and also that we can't run with the latest PhotoSauce.MagicScaler.dll. Can this be fixed?


I might say that MagicScaler is much faster than ImageGlue generating the first image, at least in webp format. My reference image went down from +8 seconds to under 1.4 sec to be generated (I had posted in this thread http://doc.dynamicweb.com/forum/cms-standard-features?ThreadID=83471 ). Multiply that on a product detail page with large product sliders and/or product list pages, and there is a noticeable difference.

 

Best Regards,

Nuno Aguiar


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Nuno,

the feature seems to be obsolete and won't be used in future. Please, have a look at task 6294 for details. Use appropriate couple of packages (https://www.nuget.org/packages/Dynamicweb.Imaging.Providers.ImageSharpProviders and https://www.nuget.org/packages/SixLabors.ImageSharp) instead. Web config should be adjusted as well as you have wrotten above. Tested on 9.13.12 and 9.14.0 - OK.

BR, Oleg QA 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

Well, this is concerning in terms of performance. Check this screencast https://www.screencast.com/t/sciH1vhTLVp

 

I do see/understand that ImageSharp is:

  • ​Compatible with Mac and Linux
  • No need to change web.config
  • Same performance as ImageGlue

 

But seems like dropping MagicScaler and/or not improving the performance of first time images is not the greatest approach. Our dev server is very powerful, and as you can see, it's taking a 10sec to generate a single image compared to 2sec average of MagicScaler. And our server is powerful

 

I know the topic is shifting a little bit, but it's a concerning one for us, considering the amount of images and scenarios where multiple images will be loaded and/or how that may affect UX in general.

 

Can this be looked at to see if this can be improved?

 

Best Regards,

Nuno Aguiar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Nuno,

Thanks for the details a lot. I've forwarded the research to DW's persons were involved in implementing of the new feature, you are is in CC.

BR, Oleg QA

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

I saw that. Thanks, hopefully they'll find a solution that works even better.

 

Best Regards,

Nuno Aguiar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've created new task 9027 to try to improve the performance. Thanks.

BR, Oleg QA 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Thank you Oleg

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Nuno

Update on Image performance #9027 has been implemented in Dynamicweb version 9.14.1

Get this from the download section https://doc.dynamicweb.dk/downloads/dynamicweb-9

Sorry for any inconvenience this may have caused

Kind Regards
Care Support
Kristian Kirkholt

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Thanks Kristian. That sounds pretty good

 

You must be logged in to post in the forum