Resize and Display image from server with ASP.NET

后端 未结 5 2021
轮回少年
轮回少年 2021-01-13 17:23

Got a question. I have images hosted on my server. I already know of the method when an image is uploaded to resize it and save, but I have another thought in mind.

<
5条回答
  •  时光取名叫无心
    2021-01-13 17:52

    You claim unlimited processing but limited disk space. Most of the time, even if they don't enforce a processing limit, as you have more customers, hits to your site, processing will be a worse bottleneck than storage space, and it will cost more to add more processing. Furthermore,

    • If you have large images, resized and compressed versions will occupy %10 of the space of the originals, even if you store a display and thumbnail version.
    • Else, just serve them and display them resized by browser, it will be faster.

提交回复
热议问题