V
V
Vlad Serov2020-05-06 09:38:38
WordPress
Vlad Serov, 2020-05-06 09:38:38

How to compress large photos and then delete the originals?

The site has an import. Everything works fine, but the real estate database from where the objects are unloaded is filled with photos in high resolution and size. As a result, after importing 10GB objects, there was no space.

There is no change in the access database. They provide photos as is.

It is necessary from our side (website) to pinch the photos and remove the originals of large size. Can this be implemented at all?

Optimizer plugins usually just resize and adjust the quality, but do not delete the originals. Or is there such a plugin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-05-07
@azerphoenix

Hello!
one)

real estate base from where objects are unloaded

If you use the API of the service from where the information is taken from the database, then you can process the photos with the same parser script. For example, if you have a VPS, then script the image through jpegoptim, jpegtran, pngtran and similar console utilities.
2) If you need a plugin, then:
EBWW Image Optimizer
It has a function
- Optimize the original version of images that have been scaled down by WordPress. (Plugin settings - Advanced)
and also:
Delete originals: Delete the original image from the server after successful conversion. (Convert tab)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question