GithubHelp home page GithubHelp logo

JPGs are not compressed about gulp-image HOT 2 CLOSED

1000ch avatar 1000ch commented on June 18, 2024
JPGs are not compressed

from gulp-image.

Comments (2)

dbaronov avatar dbaronov commented on June 18, 2024

Hello,
I have this setup here:

	.pipe(image({
		pngquant: true,
		optipng: false,
		zopflipng: false,
		jpegRecompress: true,
		mozjpeg: false,
		guetzli: false,
		gifsicle: false,
		svgo: true,
		concurrent: 10
	}))

The idea is you should only use one tool to compress each type of image. So in your case the setup should look like this (considering the enabled plugin's binary is in tact, of cause):

    .pipe(image({
        jpegRecompress: true,
        jpegoptim: false,
        mozjpeg: false,
        concurrent: 10
    }))

If still does not work, try to re-install NPM module while keeping an eye on an installation log to see what dependency binaries compile successfully and enable the one(s) that do, as you have multiple options for each file type.

Let us know if this helps.

from gulp-image.

1000ch avatar 1000ch commented on June 18, 2024

If gulp-image works correctly, JPG files are already optimized (gulp-image does not override images if applied images are bigger than not applied).

from gulp-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.