Resize images on the fly for different viewports




Wordpress LScache Plugin: Resize images on the fly for different viewports

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, is it possible with the plugin to resize images on the fly for different viewports? Different visitors have different devices (laptop, mobile phone, tablet) each with its own screen resolution. Can the plugin detect the viewport size, then resize all images on the fly for exactly that size which is suitable for the visitors viewport? For example if the original image is 1024?768 px, but the visitors viewport is 540?200 px, then can the plugin resize that image on the fly only for that visitor, to make it 540 px wide, so that it perfectly adapts to the viewport? If not, do you consider this feature on your roadmap? Hi, Yes, its actually a good suggestion , I think its technically possible , but however I have some doubts about it: 1. image resize on the fly requires considerable amount of CPU resources , many shared hosting provider wont allow it, this will probably deny 90% of user to use it 2. if you resize it as image optimization from remote server , then it will take too long to process , as result, instead of accelerate the speed, it just slows down , a lot. 3. if you meant to pre-generate it like image optimization does on remote server, then if you have considerable amount of images, in order to fit all kinds of screen sizes , your disk usage will probably be like tenfold or even more this may not be a problem for a VPS or dedi user, but for many on small shared hosting plan , it is. Best regards, There are services which already offer this feature, for example ShortPixel Adaptive Images, Smush, or Cloudflare image resizing. These services actually slow down the webpage, instead of accelerating it? I also thought about it, and you are right that this takes time, so I dont know if it really helps to speed up a website, or is it just a marketing tactic? Anyway, because there are already such services, you could consider this feature. The quic.cloud service could do the resizing very quickly in the cloud, if you have very powerful servers, then quic.cloud could do it almost instantly (you could charge for this extra resizing feature). Would it speed up the webpage? Hi, I am not sure , but it could be good feature for QC I will pass this suggestion to our devs and for further assessment Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference