I present the technical concepts and recipes behind PSFEx, an automatic
Point Spread Function extraction tool designed for all types of
astronomical images. Particular emphasis is placed on the handling of
undersampled PSFs with non-analytical profiles.