A
A
Aucuo2019-10-30 16:59:45
PHP
Aucuo, 2019-10-30 16:59:45

Outputting and compressing an image in php?

Good afternoon!
The hosting has a gallery folder with large images. Is it possible to take these images, automatically compress and immediately paste (without saving)? Is it beneficial at all? If not, please advise a more reasonable way, given that I'm not going to make a form for adding pictures on the site (I add them, transferring them to the hosting right away)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-10-30
@Aucuo

This can be done by nginx almost out of the box and saved to the cache. If you need something more serious, then you can do this with modern CDNs

A
alexbeglov1989, 2020-01-09
@alexbeglov1989

I'll share my experience of compressing pictures... At first, I had to manually recompress all the pictures through Photoshop. By the way, the most free option (except for the cost of a license for Photoshop). But this process takes a lot of time if there are more than 10-20 pictures on the site. After all, each picture must be manually processed, and then uploaded to the site again. Such a tedious process... Now I use this service - https://optipic.io/ Saves a lot of time) Works by itself - automatically - only 1 time it needs to be connected to the site. Google is happy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question