0

I am optimizing a MVC application and obviously for optimization the very first thing is optimize images/pictures. I create webp images with google's webp plugin for photoshop. I am just wondering that is there any possibility to save webp images in a SQL database and display it somewhere in a MVC razor view?

Regards

Newbie
  • 47
  • 1
  • 7
  • you can store files as byte array /var binary in a database. But if it is static content, why you want to do that ? just keep as static file (and do caching) so IIS can server it without executing any mvc request processing pipeline – Shyju Aug 22 '17 at 17:50
  • @Shyju I do use caching the `OuputCache` one but whenever I check my site performance with google speed test it ask me to optimize the images. Shall I care about it? – Newbie Aug 22 '17 at 18:02
  • Could they mean the image size? If the size of the displayed images is smaller than actual image (IE the get downsized by the browser) you should provide several images sizes depending on the size of the viewport. This way a mobile user doesn't download 10 of those 2048px product images when 256px images would be enough. I think cloudinary.com provides a service that makes this quite easy. – r41n Oct 22 '19 at 11:39

0 Answers0