-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
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
JPG image optimization not working #16
Comments
I'm getting the same error with a default 'yo webapp' build:
this is happening for both jpg AND png test files for me on OSX. |
I am getting the same issue here with the default gruntfile created with "yo webapp" (1.0) |
yeah im getting exact same thing as oldskool. I ran
Im running osx 10.6 |
I am facing the same issue aswell, allthough if i specify only png files it works fine:
Everything is okay, files gets copied and minified. But:
Results in a
If i test the grunt-contrib-imagemin from within the node_modules of my webapp (and include a jpg files to test on ) :
It doesnt work either. It does however work with png files here aswell. I'm using Windows 7 |
I'm running on mac and have the same issue with png files. |
I fixed it on Windows by doing two things:
After that the imagemin task runs fine and minifies jpg files aswell. |
The suggestion from @dennishn worked fine, I wish it gets fixed soon though |
@dennishn can you open a PR on node-jpegtran-bin with that fix? |
@sindresorhus I can, but i have no clue which files people on other OS's need. |
@dennishn Thx, your solution works also for Windows 7 32-bit. Only is needed to download 32-bit version of libjpeg-turbo (libjpeg-turbo-1.2.90-vc.exe) and copy DLL to ..\grunt-contrib-imagemin\node_modules\jpegtran-bin\vendor\win32 |
I've updated the Windows binaries and added the dll file. Could anyone test if it's working? Just replace the one living in the imagemin node_modules folder with master https://github.com/yeoman/node-jpegtran-bin |
@sindresorhus I can confirm it's working now on Win7 64bits |
New version of jpegtran-bin published. Try reinstalling this task and let me know how it works for you now:
|
Works on OSX! Doesnt seem to copy subfolders though. Is this unrelated? [ OSX 10.8.2, node v0.8.22, npm 1.2.11 ] |
Yes, see "Building the files object dynamically" in the docs: https://github.com/gruntjs/grunt/wiki/Configuring-tasks |
I still can't make it work although I tried the above ways. |
I am having this same issue on Win 7 64 bit sp1 Running grunt -v I get the following output after several files are processed ok then: snippet just before things go south :(
Running grunt --force seems to work fine |
👍 for @sindresorhus reinstallation fix |
Having the same problem here on OS X, tried proposed solution by @dennishn. Sadly didn't work. Also reinstalled grunt-contrib-imagemin, but did not help. Is there a workaround/fix for OS X yet? |
For those running into this issue, I've found a solve on OSX by not relying upon imagemin to copy the files to a destination location. Instead:
|
I tried upgrading to 0.5.0 but got this error. Not getting this error with 0.3.0. I'm on OS X 10.9.1, using node v0.10.24. |
Same problem here on Win7 64. Tried everything in the thread so far. Now taking the same approach as @Meandmybadself |
Same problem here on Mac OSX. Tried everything in the thread so far. Now taking the same approach as @Meandmybadself |
Having this issues also on OSX |
Use 0.6.0-pre. |
@sindresorhus thanks, its working for me. |
When I use this:
It won't copy my jpg images and if I specify an jpg like this:
I get the following error:
Fatal error: ENOENT, no such file or directory 'c:\proj\dist\img\email.jpg'
The text was updated successfully, but these errors were encountered: