Answer the question
In order to leave comments, you need to log in
Is there a mainstream way to optimize and deliver images?
Before, I just did crop and compression on the client using react-native, uploaded the image to Google Cloud Storage, made it public and showed the image on the client using this public link.
It turned out that the banal https://imagecompressor.com/ makes compression 70% better, and for normal use of GCS, you need to configure Load Balancer and CDN. In addition, Google also recommends third-party services: https://developers.google.com/web/tools/lighthouse...
In short, I'm looking for a popular way to upload an image, crop it into small-medium-large, optimize and distribute with the minimum possible delay without any cookies etc. What do you advise, colleagues?
Answer the question
In order to leave comments, you need to log in
In the KMK topic, several questions are confused. Compression and crop are different methods. And crop theoretically
damages the image by removing a potentially significant part of the information from it (copyrights or
inscriptions below). Therefore, it is necessary to discuss your task not from the bay, but in more detail.
What imagecompressor does - I don't know. But presumably, he takes a JPEG and runs WEBP
algorithms over it and then overtakes it back to JPEG using some kind of compatibility between them.
I don't believe in the 70% figure . There most likely goes some fuzzy criterion. And in conditions of fuzziness, you can write
any percentage, and at the same time, those around you nod their heads, because the criterion is fuzzy.
About the service. I would pick up AWS-Lambda and put some kind of open-source JPEG-WEBP codec there
and use it as a converter for myself. But on the last point, you need to look for a programmer
for AWS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question