tnp-website icon indicating copy to clipboard operation
tnp-website copied to clipboard

Image Optimization

Open JayeshVP24 opened this issue 1 year ago • 0 comments

Strapi Based Image Optimization

This probably will become a different plugin in Astro! When working with strapi Media, it gives us 3 different image links. small, normal and big. We can skip the Long Image Optimization of Astro or other frameworks and use strapi's links Caveat is we need to write different scripts for Astro and React Or probably a single react script might work. This can be a plugin but only specific to react. If we think of making this an actual plugin in Astro, we will need to make a version for every framework, essentially coz astro components cannot be imported in other frameworks...

This is a pretty simple code but I do want to make a different image optimizer independent of Strapi for all our Astro Projects. This depends on how far we want to go in aspect of image optimization. The effort required here is directly corelated with page speeds

I do want to do the independent part on personal basis but there are other tools who do this using vanilla javascript, can't remember its name. Well then again, instead of creating images at build time and increase our deployment file size, we should instead go for open source image storage and processing tools.

on the other hand, simple strapi 3 format files are enough. meh, lets do just Strapi

JayeshVP24 avatar Apr 25 '23 18:04 JayeshVP24