Quick guide to convert a file to tga without having Photoshop or similar programs installed on your computer:
If you do not use Photoshop, I recommend using PowerPoint to create the 5 images,first of all to simplify your work I suggest you keep open 2 Powerpaint windows open so that in one you create the canvas format of the image and in the other the visible area or what you see at stake.
to create the precise cut of the image you want to use I recommend you to use https://imgur.com/
And a great site completely free to share and import images in forums and other ways easily and without too much effort.
After you have definitely done all 5 formats every single size you will be wondering how you can do to convert the files in .tga format...the solution appeared to me in a totally random way, through the site https://image.online-convert.com/convert-to-tga
select the files you want to convert individually and the site will automatically convert them to .tga format (accept any other format), after which you only have to move all 5 files in the folder Documents / Neverwinter Nights / portraits , access the game and Voila! your image can be used in game!guide to convert a file to tga through console command in game:
you could use the "ConvertPortrait" command from the console on a 256x400 or larger .jpg file in your portraits folder
The 256x400 size is because it will crop and scale down the original to that ratio\size, add the extra bottom padding, and make all 5 .tga files automatically. If you use a smaller image, it will have to scale it up for the larger sizes, and the results will be lower quality. See the link http://www.neverwinternights.info/portraits.htm
from more details about that.Note: Currently there is a bug with the location it checks/creates the files, but that should be fixed in the next updates. Until then, you need to make a portraits folder (lowercase p is fine) in your \bin\win32 folder (where nwmain.exe is located). Mac/Linux may or may not have the same glitch, but the fix should be on the way soon, so you can use your regular portraits folder in any case.
Assuming your .jpg file is named MyPortrait.jpg, load any module you want to get IG, hit the ~ key (or ## if you do not have "~" your keyboard), and type:
The command is case sensitive, or just hit uppercase C, then tab for it to auto-complete "ConvertPortrait ".
Spaces in the file name will probably break the command (I didn't test quoting it, but NWN never liked spaces). *edits* Amazingly spaces in file names work when converting them.
Don't add the .jpg extension.
Hit enter and it should say "Portrait file converted. Proceed to character gen." If you get an error, then check the location of the portraits folder, your spelling/case, and that it is a .jpg file.
If the location bug is fixed, you are done (besides removing the original .jpg if you want) and it should just work when creating a character, but until then you will have to move the 5 new MyPortraitH.tga, MyPortraitL.tga etc. files to your regular portraits folder in the "UserName\Documents\Neverwinter Nights\portraits" folder (or proper locations for Mac\Linux).Considerations and requests:
In conclusion (for me but maybe also for others) the .tga format is very inconvenient, also because this same format is also used for screenshots that are made in game, and was also the beginning a little trouble understanding how to convert back to a simpler format, the solution has always appeared to me randomly through Google, through the site http://www.zamzar.com/it/convert/tga-to-jpg/#
,The process is a bit long but I managed to convert some screens of the game to be able to post them on the site.
I think that BD from my point of view should make sure to simplify the process of exporting custom portrates, not only with less files of various formats to use but also, to be able to use other files that are not .tga would simplify the life to many people and above all would invoke the average user to use personalized images.