Error importing PNG: file could not be read

Ever since I started using Unity on my Mac, I haven’t been able to import certain PNGs.

This is the error I get:

Could not create texture from Assets/Images/GUI/bubble.png: File could not be read
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()

Not sure if it’s relevant but I’m building for iOS. Running unity 4.2.2f and OSX 10.9.

Also a note, since I was using Git LFS, I had this same issue because I forgot to install Git LFS on my Mac machine (basically, all my binaries were just pointers, which I realized when all my binaries were about 130 bytes). If you have this issue after pulling from your repo, install Git LFS and run “git lfs fetch” in your repo directory.

Wow Ok I figured it out… Not Unity related at all and I apologize for not figuring this out earlier but this will hopefully help someone in the future.

I’m running OSX on my machine but I was trying to directly import the pngs (and FBX in this case) directly into unity from our WINDOWS server. Even though the files were created by Mac machines, they were formatted on the windows drive. So I have to copy everything locally before importing to Unity (or photoshop for that matter).

This is why we can’t have nice things…

The only thing that worked for me was save as PSD, JPG or BMP. Since BMP was the most pain to out and JPG has compression issues. PSD can fix this up assuming you have a copy of gimp/Photothief