A
A
Alexey Sosnovsky2015-07-17 11:28:00
webstorm
Alexey Sosnovsky, 2015-07-17 11:28:00

Imageoptim runs third party software. WHY?

using GULP I collect the project. I decided to try image compression. googled and found such a satya in it there is such a fragment

Gulp
gulp-imagemin
At the time of writing, there is no Gulp plugin that uses ImageOptim.
Note: The folks at Etsy have found that adding just 160Kb of images to their pages increases mobile abandonment by 12%. If you can't reduce the number of images on your pages, at least optimize them.

ImageOptim as it turned out for gulp already exists. Installed. Set up gulp.
gulp.task('images', function() {
    return gulp.src('./app/view/img/*')
        .pipe(imageOptim.optimize())
        .pipe(gulp.dest('dist/i/'));
});

I try
$ gulp images
[11:24:04] Using gulpfile ~/projects/project/gulpfile.js
[11:24:04] Starting 'images'...

iiii ..... here it flies out they say what to open? I press cancel... repeat... so three times
. The result - for each pass it starts an attempt to open the file 3 times. I got tired of this and decided to tell him PS to open the pictures. And now on every pass it fires PS.
Two questions:
- What for?
- how to get rid of?
I run it in webstorm and attempts to find in the settings where it was registered were unsuccessful.
let me know if anyone has experienced this

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey B., 2015-07-17
@andykov

What OS do you have?
I did not use this package, but the description says that there is a dependency on the ImageOptim-CLI package, which is not supported on Windows and Linux.
I use gulp-imagemin and imagemin-pngquant

S
sim3x, 2015-07-17
@sim3x

because this is just a wrapper over https://github.com/JamieMason/ImageOptim-CLI

WHAT?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question