Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There are many plugins that allow you to work with FTP through Gulp, such as gulp-ssh .
In theory, you can set up a task that will download images, optimize them, and upload them back.
But if your task is simply to optimize the images on the site, it will be easier to use server-side utilities like imagemin and optipng .
This is how you can resize oversized images:
With such a command, it is easy to optimize all jeeps.
Well, there are options for PNG too:
You can even set up these commands in cron and they will be run automatically periodically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question