-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 5 - Copied images using .src and .dest are corrupt #2777
Comments
Try to set |
My apologies, skipped over that part. Setting encoding to false fixes the issue. |
Docs have been updated: https://github.com/gulpjs/gulp/blob/master/docs/api/src.md#options You need to add |
I have the same issue where the images (.png) are in the right location but they're corrupt in that they won't even open in Preview. And I've tried setting
|
Ref. gulpjs/gulp#2777 (comment) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Before you open this issue, please complete the following tasks:
What were you expecting to happen?
I except files to be copied to my dist folder
What actually happened?
The files are copied, but the images are corrupt and unreadable. Tried both .jpeg and .webp
Please give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
node -v
): v20.8.0npm -v
): 10.1.0gulp -v
): 5.0.0 / CLI 3.0.0Additional information
Running this command on gulp4 causes no issues. After updating to gulp 5 the images are still copied but are corrupt.
The text was updated successfully, but these errors were encountered: