Answer the question
In order to leave comments, you need to log in
Which is better, create a webp image or convert a dynamic one?
Hello. I want to use webp format for supporting browsers. On some sites I saw that the jpg image is converted dynamically. Those. instead of a picture, the request processes a php file. There is a check whether the browser supports webp and if so, it converts jpg and shows the finished webp. The advantage of this option, as for me, is that only a jpg image is needed and there are no duplicates (jpg, webp) that take up space.
And 1 more option, this is already when loading php, the script converts jpg directly to webp. When loading, a request is made to php and if the browser supports webp, then it loads the ready-made webp.
In my case, there are about 200+ pictures in the future, there will be more. On average, each picture weighs about 300kb
Which option is better to use?
Answer the question
In order to leave comments, you need to log in
There is a check whether the browser supports webp and if so, it converts jpg and shows the finished webp.A controversial and unpractical solution, in addition, I have some doubts that this is generally used anywhere.
The advantage of this option, as for me, is that only a jpg image is needed and there are no duplicates (jpg, webp) that take up space.
In my case, there are about 200+ pictures in the future, there will be more.For a general understanding of the issue, the process of converting from format to format is very costly in terms of resources, so usually no one does this, in any case, this does not occur on adequate projects. 200 pictures - generally garbage, from another 200 pictures the server is neither hot nor cold. But the process and memory will be bad. In general, for such cases, there is a special picture tag, in which you can register all available formats and sizes, and the browser itself will choose the most suitable one for display.
Why do you need this, given that you only have 200 pictures?
Profit is close to zero
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question