Yafray Textures - BMP vs JPG

I have started adding textures to some models that I am exporting to Yafray usign the yablexgg228.py script. The weird thing that I have noticed is that the XML generates this line:

<texture name="hammermap" type="image">
		<filename value="c:/temp/hammermap.bmp" />
</texture>

but it will return “IMAGE NOT LOADED” unless I convert the BMP to a JPG and change the XML to:

<texture name="hammermap" type="image">
		<filename value="c:/temp/hammermap.jpg" />
</texture>

At this point it seems to work fine.

Weirder yet, if I just have the JPG in the textures directory, the script must think there is no image at all and includes no code concerning it, so I end having to have both the JPG and the BMP in the texture directory.

I am doing something wrong or is this just a idiosincracy with the script?

Well, i didn’t understand the last part very well but…Yafray uses only TGA and JPG as image formats so, if you use BMP yafray won´t recognize it,thus can’t load that image, that’s why it works ok when you converted the file from BMP to JPG. Yable probably doesn’t take into account which format are you using, but remember that only TGA and JPG works.

I think I figured it out. Even though I was using the jpg in the final result, I still had the original UV faces tied to a BMP in Blender which I think caused Yable to output the BMP in XML document.