Questions tagged [grunt-contrib-imagemin]

Minify PNG, JPEG and GIF images

Grunt task to optimize PNG, JPEG and GIF images.

46 questions
2
votes
0 answers

Image Optimization: Grunt

I need an expert advise which one of the Grunt plugin is much more effective in image optimization. Is it grunt-tinyimg or grunt-contrib-imagemin? or Is there something better? Thank you
SimplifyJS
  • 518
  • 1
  • 6
  • 12
2
votes
1 answer

Grunt Imagemin not optimizing images

My images are not being optimized. Perhaps I am doing something wrong on my end but every other task is working for me except my imagemin task. I removed all other tasks and tried to run my task below but it doesn't execute. There are also no…
breezy
  • 1,910
  • 1
  • 18
  • 35
2
votes
0 answers

Using Grunt, Newer and Watch to optimize a bunch of images

I started today getting used to grunt. I wanted to create a grunt package? script? module? task? which optimizes all images that will be uploaded to a certain folder (uploads/ ... it's a wordpress installation). After some fiddling, I've create this…
2
votes
1 answer

Grunt tasks running indefinitely

I have installed grunt and trying the grunt-react and grunt-contrib-imagemin tasks. I have setup the following Gruntfile.js. module.exports = function(grunt) { grunt.initConfig ({ imagemin: { dynamic: { files: [{ …
psiyumm
  • 6,437
  • 3
  • 29
  • 50
2
votes
2 answers

Dynamic image ng-src doesn't change to minified image name

I've got two images, a green check mark and a grey check mark. These are shown/hidden as the user checks or unchecks an item in a list. The problem I'm having is that when minifying the app's images with grunt-contrib-imagemin, these two images…
Chrillewoodz
  • 27,055
  • 21
  • 92
  • 175
2
votes
0 answers

How to fix fatal error write EOF when using imagemin plugins

New to grunt, using grunt-contrib-imagemin to optimise my images. The default settings work great with PNG and save a lot. But there are barely any savings on jpegs. I'm trying to use an imagemin plugin to handle the jepg compression. I got mozjepg…
mildrenben
  • 3,675
  • 5
  • 23
  • 37
1
vote
1 answer

Image compression with imagemin-contrib (Grunt)

I was wanting to test out the imagemin-contrib in Grunt.js. I selected three jpg random images (sizes: 44kb, 92kb, 77kb, respectively) and set up the folder and plugin. When I ran the imagemin grunt task, I received a message saying the photos…
Theodore Steiner
  • 1,553
  • 2
  • 23
  • 34
1
vote
1 answer

why grunt is failing at imagemin dependency?

I am using node version 0.12.2 and npm version 3.3.6. I am using yeoman tool to create angular app. When i run grunt it is aborting at imagemin dependency. I tried command npm install -g grunt-contrib-imagemin and npm install imagemin too.Still i…
1
vote
1 answer

Grunt newer:imagemin always runs imagemin:dynamic

I have a Gruntfile like: grunt.initConfig({ imagemin: { dynamic: { files: [ src: ['lib/public/img/*.{png,jpg,jpeg,gif}'], dst: 'build/public/img/', expand: true, flatten: true ] } …
Mr. Goferito
  • 6,391
  • 4
  • 26
  • 27
1
vote
1 answer

Trying to debug grunt error

I'm trying to debug a grunt error and i'm not sure where to begin. Here's my output: $ grunt build Running "clean:dist" (clean) task Cleaning .tmp...OK Cleaning dist/img...OK Running "wiredep:app" (wiredep) task Running "useminPrepare:html"…
Catfish
  • 18,876
  • 54
  • 209
  • 353
1
vote
1 answer

Grunt imagemin running but not minifying

Image-min is running normally but i get 0 images minified why? after run the code on my terminal: $ grunt imagemin Running "imagemin:dist" (imagemin) task Minified 0 images (saved 0 B) Done, without errors. I am not understand, I…
raduken
  • 2,091
  • 16
  • 67
  • 105
1
vote
3 answers

How can I optimize all my images?

Diagnose I recently came across : PageSpeed Insights, it basically test your page speed, spit out a score, and display what cause your page to slow-down. I enter my url and here is my : result. Issues I clearly don't have a lot score, but I'm…
code-8
  • 54,650
  • 106
  • 352
  • 604
1
vote
2 answers

Grunt imagemin for multiple locations

I am trying to add Grunts imagemin plugin and it is working fine if I want to work in one directory only. However I have a multilingual site and therefore I have separate image directories for both English and French images. Is there a way to apply…
Darren
  • 105
  • 2
  • 14
1
vote
0 answers

cannot proceed with npm install grunt-contrib-imagemin on windows server 2008

I cannot go with npm install on windows server 2008. The behavior is strange. Please see: PS C:\1> npm cache clear PS C:\1> npm install npm WARN package.json 1@0.0.0 No description npm WARN package.json 1@0.0.0 No repository field. npm WARN…
1
vote
2 answers

No images being compressed using grunt-contrib-imagemin

I'm having trouble using grunt-contrib-imagemin, insofar as I can't get it to compress any images. Here's my Gruntfile.js module.exports = function(grunt) { // 1. All configuration goes here grunt.initConfig({ pkg:…
rnnbrwn
  • 57
  • 3
  • 12