Answer the question
In order to leave comments, you need to log in
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
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
500kb per image is a lot,
you can process it with minifiers, for example imageoptim,
or online https://tinyjpg.com/ https://squoosh.app
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 questionAsk a Question
731 491 924 answers to any question