M
M
Maxim K2019-10-27 15:37:31
Image processing
Maxim K, 2019-10-27 15:37:31

The catalog of pictures takes up a lot of space on the site, how to reduce the size?

Hello. There is a catalog with pictures, the pictures are all saved in jpg - 101 by 135px. The site uses this size of pictures without any max-width, etc. The weight of each picture takes an average of 500 kb - in total, the minimum page with 30 pictures, almost 18 megabytes is a lot, how to reduce the size? Or how to make catalogs with pictures?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Arthur, 2019-10-27
@ar2rsoft

compress compressor for jpeg
For this size 500kb Pts is a lot

A
Alex Karo, 2019-10-27
@Zraza

https://tinyjpg.com/

A
Artem Ivanov, 2019-10-27
@ns174ru

1. if it is possible to compress jpeg images
2. use a lazy-load plugin to avoid loading all the images at once during page load
3. dubious method for your case, but still - use smaller thumbnails, with links to the main images

D
dmax1447, 2019-10-27
@dmax1447

500kb per image is a lot,
you can process it with minifiers, for example imageoptim,
or online https://tinyjpg.com/ https://squoosh.app

M
motcart, 2019-10-28
@motcart

In what format is the picture? If zhpg then 500 KB is really a lot for such a resolution.
Under ubuntu, install the imagemagic package and in the terminal
cd /papka/skartinkami
for file in *.jpg; do convert -quality 60 $file $file; done
All images will be compressed at 60% quality. Make a backup in advance, because after executing this command, all files will be rewritten compressed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question