I have this odd problem - my texture is showing up purple in cycles using OSL but the code is correct.
At first I thought I was just messing up the path to the image, but then I got it working using a different image. It seems it doesn’t work when I used an image I saved from Blender - in my case it’s a normal map baked and then saved to disk.
Even if I open the saved image, and re-save it, or even export as a different type, no luck. The only way I can use it is by opening a non blender saved image, pasting it over the top and exporting it.
I can’t figure out what property of the image saved in Blender is stopping it from working. Any suggestions?