Closed k1ll1n closed 3 years ago
Please provide more details:
node --version
npm ls
I'm getting this too so I'll chime in.
Node:
v14.16.0
Happens with any image, so I'm not sure how the vinyl would help. And if that matters, I'm on macOS Big Sur.
I can run example.js
within this repo just fine, using Node.js v14.17.3.
Have you double-checked that you're only sending images into gulp-scale-images
? You can debug files in a Gulp pipeline using gulp-debug
.
@derhuerst Hi! readme.md contains wrong example. The function readMetadata takes as its first argument Vinyl file instance. But in sample it take in first argement a string - file.path
. Because of this people has this error.
Thanks @k1ll1n for reporting this, and thanks @IAluI for resolving this!
With this code, I get the error "Invalid input"