Answer the question
In order to leave comments, you need to log in
How to use images on the site?
good
There is a block in which an image is used
For example, I found a beautiful, suitable image on Unsplash and I want to use it I write
for the block like this
<div class="grid-item" style="background: url('img/test-img2.jpg') no-repeat center / cover;">
</div>
Answer the question
In order to leave comments, you need to log in
Online:
https://imagecompressor.com/
https://tinypng.com/
www.imageoptimizer.net/Pages/Home.aspx
WP:
https://wordpress.org/plugins/resmushit-image-opti...
https ://wordpress.org/plugins/ewww-image-optimizer/
https://wordpress.org/plugins/tiny-compress-images/
https://wordpress.org/plugins/shortpixel-image-opt...
https ://wordpress.org/plugins/wp-smushit/
JS:
https://www.npmjs.com/search?q=keywords:image%20op...
PHP:
https://github.com/spatie/image -optimizer
https://github.com/psliwa/image-optimizer
Django:
https://github.com/joedicastro/img4web
https://github.com/chrissimpkins/Crunch
What's the problem?
In terms of image optimization, you should look into Imagemin.
For example, through npm scripts:
You can batch process a large number of photos, while the quality does not change visually, and a 13MB file can be compressed up to 2MB.
Only for compressing jpg files, I advise you to install an additional plugin:
You can use Imagemin along with Gulp.
ha the same wordpress images are resized. those. the physical size decreases, and then they are optimized, and only if the full image is needed, the original is given, although everyone has different 30 seconds for a short time, and traffic on mobile phones has fallen in price ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question