-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Error: PNG file appears to be corrupted by text file conversions #1382
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
Comments
make sure your |
That is the answer. Thank you good sir. |
Hi, I've struggled with the same issue, and it does seem related to the way git handles line ending translation on each checkout. Edited to clarify: The issue doesn't happen when doing everything locally, it only happens when bouncing the codebase through git, and might be the root cause for issues #557 and #96 as well. The corruption happens as soon as the image file is checked out from the git repository, and unrelated to the specific stage where imagemin is being run. Two questions:
WDYT? |
@harelba Yeah specific text definitions would be better. I just haven't gotten around to it. A PR would be welcome. |
@Awk34 I'd be glad to send a PR for this. However, my own solution was to eventually remove .gitattributes altogether, and change the global core.autocrlf flag to false before checking out, so multi-platform checkouts would work well (I actually had to delete my entire git repository, since the original image data there was corrupted, and the "modified" check of Do you happen to know what was the original reason for adding the .gitattributes file? At first I was under the impression that it's needed for one of the configuration files, at least for now, it seems that things are working fully well without it. Harel |
It would probably be better to mark specific files (js, html, css, etc) as text with |
And by Brittany I mean all image formats due to: [this](angular-fullstack/generator-angular-fullstack#1382)
And by Brittany I mean all image formats due to: [this](angular-fullstack/generator-angular-fullstack#1382)
Using angular fullstack v2.1.1
The build seems to be hanging up when hitting imagemin. What's new is when I commit images to github, it shoots a crlf to lf warning too.
Anyone run into this as well?
The text was updated successfully, but these errors were encountered: