{"action":"created","issue":{"url":"https://api.github.com/repos/imagemin/imagemin/issues/138","labels_url":"https://api.github.com/repos/imagemin/imagemin/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/imagemin/imagemin/issues/138/comments","events_url":"https://api.github.com/repos/imagemin/imagemin/issues/138/events","html_url":"https://github.com/imagemin/imagemin/issues/138","id":118670748,"number":138,"title":"Images Are Not Optimized In dest()","user":{"login":"CelticParser","id":6665669,"avatar_url":"https://avatars.githubusercontent.com/u/6665669?v=3","gravatar_id":"","url":"https://api.github.com/users/CelticParser","html_url":"https://github.com/CelticParser","followers_url":"https://api.github.com/users/CelticParser/followers","following_url":"https://api.github.com/users/CelticParser/following{/other_user}","gists_url":"https://api.github.com/users/CelticParser/gists{/gist_id}","starred_url":"https://api.github.com/users/CelticParser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CelticParser/subscriptions","organizations_url":"https://api.github.com/users/CelticParser/orgs","repos_url":"https://api.github.com/users/CelticParser/repos","events_url":"https://api.github.com/users/CelticParser/events{/privacy}","received_events_url":"https://api.github.com/users/CelticParser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-24T18:09:48Z","updated_at":"2015-11-25T04:03:30Z","closed_at":null,"body":"I just tried out `imagemin` and I am finding the output files are not minimized/optimized. The files are being written to `.dist()` but the .jpg's and .png's are only being duplicated from the `.src()`. Also, .svg's are copied w/o data. \r\n\r\nI may just be doing something wrong(?).\r\n\r\n**Usage:**\r\n\r\n    new Imagemin()\r\n    .src(environment + '/content/img/*.{gif,jpg,png,svg}')\r\n    .dest(environment + '/_public/img/')\r\n    .use(Imagemin.jpegtran({\r\n      progressive: true\r\n    }))\r\n    .use(Imagemin.optipng({\r\n      optimizationLevel: 5\r\n    }))\r\n    .use(Imagemin.svgo())\r\n    .run(function (err, files) {\r\n      if (err) {\r\n        console.log(err);\r\n      } else {\r\n        console.log(files);\r\n      }\r\n    });\r\n\r\nI have tried changing the `optimizationLevel` for .png's and played with the `progressive` properties for the .jpg's and no change.  If I run the images thru an online processor, I get a min of 30% reductions.\r\n\r\n**Log:**\r\n\r\n```\r\n{ [Error: spawn /home/ubuntu/workspace/_op/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor/jpegtran ENOENT]\r\n  code: 'ENOENT',\r\n  errno: 'ENOENT',\r\n  syscall: 'spawn /home/ubuntu/workspace/_op/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor/jpegtran',\r\n  path: '/home/ubuntu/workspace/_op/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/vendor/jpegtran',\r\n  spawnargs: [ '-copy', 'none', '-optimize', '-progressive' ],\r\n  fileName: '/home/ubuntu/workspace/env/production/content/img/Jason-Robert-OKennedy.jpg' }\r\n[Error: no writecb in Transform class]\r\n```\r\n\r\nHelp  will be greatly appreciated.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/imagemin/imagemin/issues/comments/159485718","html_url":"https://github.com/imagemin/imagemin/issues/138#issuecomment-159485718","issue_url":"https://api.github.com/repos/imagemin/imagemin/issues/138","id":159485718,"user":{"login":"shinnn","id":1131567,"avatar_url":"https://avatars.githubusercontent.com/u/1131567?v=3","gravatar_id":"","url":"https://api.github.com/users/shinnn","html_url":"https://github.com/shinnn","followers_url":"https://api.github.com/users/shinnn/followers","following_url":"https://api.github.com/users/shinnn/following{/other_user}","gists_url":"https://api.github.com/users/shinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/shinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinnn/subscriptions","organizations_url":"https://api.github.com/users/shinnn/orgs","repos_url":"https://api.github.com/users/shinnn/repos","events_url":"https://api.github.com/users/shinnn/events{/privacy}","received_events_url":"https://api.github.com/users/shinnn/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T04:03:30Z","updated_at":"2015-11-25T04:03:30Z","body":"Is there any error logs on `npm install imagemin`?\r\n"}}