Questions tagged [imagemin]

91 questions
0
votes
0 answers

Gulp imagemin prints error because it affects not only .png files

Gulp imagemin prints error because it affects .svg files along with .png images. The error is: [19:37:49] gulp-imagemin: Minified 0 images events.js:167 throw er; // Unhandled 'error' event ^ Error: Unsupported file type:…
Fullstack
  • 135
  • 1
  • 1
  • 11
0
votes
1 answer

How can I limit the number of child processes in imagemin-mozjpeg?

I'm using imagemin-mozjpeg which uses mozjpeg binary to compress images. The problem is that I'm using it in a nodejs webserver. This is how it works now: I'm uploading a JPEG image using "request" module (fs.createReadStream). Multer process the…
Faheem
  • 1,105
  • 11
  • 28
0
votes
0 answers

no images compressed using imagemin in nodejs

I am using multer to upload images to the server and imagemin to compress the images. But when i am unable to do compress the image. app.post('/upload',(req,res)=>{ upload(req,res,(err)=>{ if(err){ res.render('picupload',{ …
roh_dev
  • 275
  • 2
  • 6
  • 17
0
votes
1 answer

How use compress-images?

How use compress-images? https://www.npmjs.com/package/compress-images Gif image was - 4.1mb; Gif image became - 4.2mb; Gif image after compression is obtained more size than before. Why? I…
0
votes
1 answer

npm Guetzli not working

I am trying to do npm install guetzli. But always it is erroring saying /Users/annah/Downloads/helloworldGoogle/node_modules/guetzli/vendor/guetzli` binary doesn't seem to work correctly   ⚠ guetzli pre-build test failed   ℹ compiling from source  …
0
votes
1 answer
0
votes
1 answer

gulp-imagemin - use source as dynamic destination

I've tried looking around but I can't find anything I can understand. I'm quite a newbie when it comes to gulp and stuff, as I mainly use it to automate a couple of tasks for front end dev so I've managed to make it work with the few things I needed…
Alessandro Benassi
  • 1,640
  • 2
  • 14
  • 19
0
votes
1 answer

gulp-image-optimization build gives error

My Node and Npm Vesrions are below node v6.9.1 npm v3.10.9 My code is 'use strict'; const gulp = require('gulp'); const imageop = require('gulp-image-optimization'); let dir = { srcImages: 'public/wps/source/images', build:…
Suresh R
  • 71
  • 1
  • 10
0
votes
2 answers

then is not a function

I'm running the following code in my node.js project. I've required "imagemin" and "imageminGifsicle". I've getting the following error }).then(files => { ^ TypeError: imagemin(...).then is not a function Do I have not used promises in my…
Jason Small
  • 1,064
  • 1
  • 13
  • 29
0
votes
1 answer

gulp-imagemin not using plugins option

I'm having trouble getting gulp-imagemin 5.2.1 to use a different plugin from the defaults. I need to compress jpegs more than the default jpegtran plugin does with its lossless compression. I wanted to try using imagemin-jpeg-recompress 5.1.0. Here…
Brian
  • 1,675
  • 3
  • 19
  • 29
0
votes
1 answer

Grunt Imagemin not compressing jpgs

My imagemin doesn't seem to compress jpgs? It says: "37 images found. Saved 0 B. Weirdly enough it works on .gif and .png so I know it's working to some degree. Anyone else had this problem? I've tried uninstalling/re-installing. Also got the latest…
Rhys
  • 489
  • 3
  • 14
0
votes
2 answers

Proper jpeg optimization via Gulp?

I'm going to find the best solution for jpg optimizing process, based on Gulp plugins (such as imagemin package). My goal is to compress jpg file like Save For Web in Adobe Photoshop - progressive: true and quality: 61. I have one image, saved in…
0
votes
0 answers

How can you use imagemin with WebJars from Clojure?

As far as I can tell WebJars are designed to serve up static assets from a JVM based back end. There is a WebJar library for imagemin, but imagemin is a build time or run time concern. The browser has no idea what to do with gifsicle.exe or the…
Peter Stephens
  • 1,040
  • 1
  • 9
  • 23
0
votes
1 answer

Cannot install grunt-contrib-imagemin in Windows 8.1

I cannot install grunt-contrib-imagemin on my Windows 8.1 machine. I have Node version 0.10.33. I have npm version 1.4.28. They are both fresh installations. I was following this tutorial to setup Grunt to manage SASS, JS and images in a Laravel…
Daniel Twigg
  • 749
  • 4
  • 22
0
votes
1 answer

Preventing Grunt from running in destination directory

Currently trying to figure Grunt out and the first dependency I'm configure is grunt-contrib-imagemin. My code currently looks like this: module.exports = function(grunt) { // Parse JSON grunt.initConfig({ pkg:…
PaulVO
  • 309
  • 3
  • 13