- Home /
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.
Answer by falantar14 · Dec 10, 2013 at 04:42 PM
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...
Thanks, this worked for me also on Linux. I first copied the png and fbx files then opened the unity to import them.
Answer by Skyunity · Nov 17, 2020 at 08:17 PM
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.
This ended up being the solution to my problem. Thanks a bunch, I was pulling my hair out over this.
Answer by twobob · Aug 24, 2018 at 11:29 PM
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