Hi,
CompositeBands does not work for BMP, GIF, JPEG, JPG2000, PNG, but it works for BIL, BIP, BSQ, DAT,IMG,TIFF.
Here is the error message:
in_band = "rr"+";"+"gg"+";"+"bb"
out_file = 'test.png'
gp.CompositeBands_management(in_band, out_file)
arcgisscripting.ExecuteError: ERROR 000446: Output file format with specified pixel type or number of bands or colormap is not supported. Refer to the 'Technical specifications for raster dataset formats' help section in Desktop Help.
Failed to execute (CompositeBands).
Wentao
KKC, Tokyo, Japan