I see that the .icns files from Ukelele do appear in System Preferences properly. I am now trying to create a custom image for my keyboard layout. I found that if I take one of the working Ukelele .icns files, open it in Preview, then save it with Preview, the resulting image does *not* appear in System Preferences.
That is, without me making changes to the image, Preview processing it and resaving it is changing something and causing it to be incompatible with System Preferences. Any ideas? GIMP won't even open .icns files. I confirmed this is not a file permissions issue. Opening the files in a text editor confirms that Preview has significantly altered the contents (but it looks like hexdump or compiled code, so it's not intelligible)
Thank you in advance for your help in the matter,