The file name can't be longer than seven characters + the ending S, M or L. C:\Program Files\Baldur's Gate\Portraits).
For custom protagonist portraits only the smaller two are required, which both go into the 'portraits' folder in the game's directory (i.e. The games use three different sized portraits. 11 December 2012 Baldur's Gate & Baldur's Gate II