Skip to content
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

Gulp v5.0.0 png and jpg images not opening after transferring via gulp #2779

Closed
sharnirio-work opened this issue Apr 4, 2024 · 2 comments
Closed

Comments

@sharnirio-work
Copy link

sharnirio-work commented Apr 4, 2024

What actually happened?

The pictures jpg & png format are broken and don't work after copy from "src" to "dest"

Please give us a sample of your gulpfile

Full example - repo

Gulp file code:

`const { src, dest } = require('gulp');

function defaultTask(cb) {
return src("img/*.+(jpg|png|svg)")
.pipe(dest('img-after/'));
cb();
}

exports.default = defaultTask`

As you can see the pictures break and stop working. Original image link and image after gulp transferring link

Please provide the following information:

Windows 11
node -v : v18.19.0
npm -v : 10.4.0
gulp -v: CLI version: 3.0.0 Local version: 5.0.0

@Patta
Copy link

Patta commented Apr 4, 2024

#2777 (comment)

@phated phated closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
@yocontra
Copy link
Member

yocontra commented Apr 6, 2024

Docs have been updated: https://github.com/gulpjs/gulp/blob/master/docs/api/src.md#options

You need to add { encoding: false } for binary files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants