The avatars are stored as 'large' and 'small', for example:
data/avatars/l/1/1099.jpg
data/avatars/s/1/1099.jpg
The large ones are fine (and most of them untouched).
What I am looking for is a way to rebuild the thumbnails.
This proces also runs when you import from another forum.