Pngs are now corrupt in builds

I have a react app that deploys from a Github repo. Up until today I have had no issues with the static images in my site. But today any builds in netlify succeed, but it appears all pngs are corrupt. They have always been kept in public/static and some in just the public folder. “yarn build” seems to grab and put those images in the build/public folder correctly on my local machine. They look good on github. And the netlify build adds them to the “Deploy File Preview”. However they are all 129 bytes and if you download just get a “corrupt” message when opening. I have tried moving and renaming these files. I hadn’t done anything to the web page other than change some unity files.

Images sit in public/static/IMAGENAMES.png

And i reference them with css like – background-image: url(“/static/IMAGENAMES.png”);

None of those images were altered/moved. And all at once it looks like they are ending up corrupt at netlify.

Adding the screenshot of the build folder on netlify before things went sideways

@EastedgeZack Is your repository public? Can you provide a link to it?

Apologies but it is not. Is there any screenshots or anything i can grab for you?

@EastedgeZack No, sorry.

I was just planning to run your ‘build command’ locally and confirm your assertions, on the off chance that I could immediately respond with something to get you going.

I don’t work for Netlify and I don’t have time for the ‘back & forth’ that trying to debug someone’s issues via screenshots would entail.

Just run your build command locally, (not your development command) and check the output.
If it doesn’t output working png’s there, then it won’t output working png’s on Netlify.


Ah ok. But it does appear to generate a build folder with all the images in place running my build command which is “yarn install && yarn build”

@EastedgeZack Hence why I wanted to run it.

Since my system would be a ‘clean slate’, as Netlify’s is.

Best of luck getting it sorted though!

130 bytes sounds like the size of a Git pointer. Are you using Large Media by any chance?

I am using large media elsewhere in the app. Some UnityWebGL build files. But those work. It’s just these small pngs. As you can see in the second screenshot the biggest was 64.1KB

Try disabling Large Media as I’m fairly certain the issue is related to that.