What happens when an image fails to load in your system? It goes without saying that we need to find a non-intrusive way to analyze it.
It happened to me today. An image downloaded from the internet was failing to load in my project (a virtual art gallery for domes, more on that once it’s out). The internal framework involves to copy the image to the project folder and open it with Video Texture. For those unfamiliar with the Blender Game Engine, this is a python module to dynamically load and swap in-game textures.
In my tests all the images I tried were working. No exception. But of course it takes only a test-run with the client to get a crash 😉 One single image was enough to make me pull my hair.
Our beloved open image editor GIMP opens the image with no problems. In fact if I open it and save it I can open it in my project with no problems. So what’s wrong? Why can’t GIMP warn me about this problematic file?
Looking for ‘file inspectors’ I ran into this Binary File Inspector from Microsoft. It didn’t take more than a glance to spot the problem:
CMYK … Bingo! Opening the image in a station with Photoshop proved this was the issue.
For the adventure seekers out there, remember: open source tools are great. Yet you should be not afraid of getting out of your comfort zone once in a while.
Who could guess that Microsoft would be the cavalry to make it up for the lack of CMYK (and feedback) support on GIMP 😉 (or the lack of CMYK support in Video Texture, or me being short in tools for image forensics, …).
Have a great day,