This section specifically means portraits in portraits.2da that are not tied to a particular creature appearance. Those are usually found with the creature themselves.

The base game ones will get a 4x upscale (or reuse the _H one as a lower sized one) and any new ones will be listed here.

portraits.txi

This file must be included and be blanked so that the mipmaps of DDS files on portraits doesn't ruin the quality at high resolutions and high scaling values (eg; x3 or x4). It otherwise takes some weird cross section of the file when resizing it or viewing them at distance.

Methodology

This is from the 4x project.

Crunch Options

All portraits won't have alpha so forcing -DTX1 on nwn_crunch is the key to lower file sizes.

New Approach

After some testing of the below (renaming some files, copying others) it is actually beneficial instead to use the mipmaps of the 4x option.

This will need likely some GIMP scripting but could be much simpler as well - you end up with a source _H PNG, then you generate the DDS of it, and from that DDS generate the 4 other files.

Gives each portrait a relatively optimal "size" but retains all the upscaling details that bring back quality.

Same can be done for the placeables just using the M instead of H.

Alternatively: Just use crunch rescale; see how that does - remember DXT1! Need a powershell script for this.

nwn_crunch.exe -file -i "..\sources\*h.png" -outdir "..\out" -fileformat dds -DXT1 -yflip -quiet

Creatures

We want to upscale the Huge portrait which is highest quality option available to be the new Huge. Then we cut this one in half for the Large.

Then we reuse H, L and M for M, S, T.

Portrait SizeUseOriginal SizeTGA Size4x SizeFile UsedDDS SizeNotes
Huge (h)Chargen only really256x512385KB1024x2048H upscaled1.33MB
Large (l)Character sheet128x25697KB512x1024H upscaled, and halved
Sizeable increase in quality
Medium (m)Top left portrait64x12825KB256x512Rename original h file
4x the original size so should be good (and not too large)
Small (s)Sidebar portrait, conversations32x647KB128x256Rename original l file
4x the original size so should be good (and not too large)
Tiny (t)Tab "see names" portrait16x322KB64x128Rename original m file
4x the original size so should be good (and not too large)

For placeables since they lack H and L (mostly! there are 1 or 2 that have them, perhaps since the portraits are reused on creatures for some reason).

Portrait SizeOriginal Size4x SizeOption to do
Medium (m)64x128 canvas; upper 64x100 used256x512Keep since highest quality upscaled version
Small (s)32x64 canvas; upper 32x50 used128x256Resize M version by / 2 each dimension, to be new s (or we do the s file)
Tiny (t)16x32 canvas, upper 16x25 used64x128

Reuse original m file

Oddities for the different options below:

Can remove:

Original Portraits Upscaled

To follow. Need to pick out which ones are appearance.2da related.

New Portraits

To follow.

Naming convention would be: po_op_XXX_t.dds (where T would be the appropriate size ID). XXX can be 9 characters long. This is because of portraits.2da limitations (you are forced to use po_ as a prefix!)