We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of compress or minify the image size, it is making image size bigger.
const imagemin = require('imagemin') const imageminJpegtran = require('imagemin-jpegtran') const fs = require('fs').promises
Try 1
await imagemin(['./old/1.jpg'], { destination: './new', plugins: [imageminJpegtran()], })
Try 2
let oldFile = await fs.readFile('./old/1.jpg') let newFile = await imagemin.buffer(oldFile, { plugins: [imageminJpegtran()], }) await fs.writeFile('./new/1.jpg', newFile)
In both cases image size is increasing. The image size is 175.3 kb after run its become 179.2 kb.
175.3 kb
179.2 kb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Instead of compress or minify the image size, it is making image size bigger.
Try 1
Try 2
In both cases image size is increasing. The image size is
175.3 kb
after run its become179.2 kb
.The text was updated successfully, but these errors were encountered: