Comments (11)
I am facing the same problem but only in Window and Mac Env.
I think task fails when we have some recursive folders ......
Do you also have recursive folders structure??
from gulp-image.
@GJ2511 By recursive folders do you mean nested folders? If so, yes, my project has nested folders. This is failing on my Mac, haven't tried it on any other platforms.
from gulp-image.
@jhulst yes, exactly
from gulp-image.
I have the same problem. It doesn't process nested folders. Windows 10 env.
from gulp-image.
Same problem – author not replying ...
from gulp-image.
Confirm that your setting choose images with gulp.src()
which accepts string as glob.
const gulp = require('gulp');
const debug = require('gulp-debug');
gulp.task('image', () => {
gulp.src([your setting])
.pipe(debug());
});
from gulp-image.
@1000ch, thanks for reply
I'm using following config:
const gulp = require('gulp');
const image = require('gulp-image');
const debug = require('gulp-debug');
gulp.task('image', () => {
gulp.src('/var/www/localhost/wp-content/uploads/**.*')
.pipe(image())
.pipe(gulp.dest('./dest'));
});
gulp.task('default', ['image']);`
from gulp-image.
Try changing gulp.src('/var/www/localhost/wp-content/uploads/**.*')
to gulp.src('/var/www/localhost/wp-content/uploads/**/*.{png,gif,jpg,svg}')
?
from gulp-image.
I had the same issue and added gulp-plumber
to troubleshoot.
From zopfli, this was the error I was getting:
google/zopfli#32
Is zopflipng-bin outdated? imagemin/zopflipng-bin#6
But I had issues with mozjpeg and jpegoptim:
Message:
Command failed: /Users/emadison/Projects/website-3/node_modules/mozjpeg/vendor/cjpeg -optimize -progressive
dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Referenced from: /Users/emadison/Projects/website-3/node_modules/mozjpeg/vendor/cjpeg
Reason: image not found
Details:
code: null
killed: false
stdout:
stderr: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Referenced from: /Users/emadison/Projects/website-3/node_modules/mozjpeg/vendor/cjpeg
Reason: image not found
Message:
Command failed: /Users/emadison/Projects/website-3/node_modules/jpegoptim-bin/vendor/jpegoptim --strip-all --strip-iptc --strip-icc --stdin --stdout
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /Users/emadison/Projects/website-3/node_modules/jpegoptim-bin/vendor/jpegoptim
Reason: image not found
Details:
code: null
killed: false
stdout:
stderr: dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /Users/emadison/Projects/website-3/node_modules/jpegoptim-bin/vendor/jpegoptim
Reason: image not found
Only pngquant and jpegRecompress work for me. Will investigate further. I don't necessarily think it's a problem with gulp-image, but perhaps requires some extra setup for some of the libraries.
from gulp-image.
jpegoptim installation required by gulp-image seems to be failed. Would you try to re-install jpegoptim-bin after installing correct version libjpeg-turbo instructed on jpegoptim's readme?
REQUIREMENTS
Independent JPEG Group's jpeg library (libjpeg) version 6b or later.
(Alternatively should also work with libjpeg-turbo or mozjpeg)
from gulp-image.
Move to #30
from gulp-image.
Related Issues (20)
- error after updating dependencies HOT 1
- Publish new version and run npm release HOT 2
- Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
- Wrong external dependencies for Ubuntu/Debian
- 6.3.1 doesn't work with the esm module loader HOT 2
- Don't work - Error [ERR_REQUIRE_ESM]: Must use import to load ES Module HOT 5
- Regression from version 4.1.0 to 4.2.0, install failing at mozjpeg HOT 7
- NPM 5.6.0 can't install gulp-image HOT 1
- Is it possible to have a node version? (without gulp) HOT 3
- Replace deprecated dependecy gulp-util HOT 1
- Can't change quality setting for mozjpeg HOT 2
- pngquant --speed does not do anything HOT 3
- Request to remove gulp-util HOT 2
- Getting a deprecation warning when installing HOT 2
- I don't have image type so how can I compressed?? when I compress with image type its working fine.
- jpeg HOT 1
- Npm install error HOT 1
- withMetadata HOT 4
- The output is different between window and mac HOT 5
- PNG HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-image.