Dedicated to Prof Maria J YzuelWavefront coding is a hybrid optical-digital imaging system technique which generates aberrations using a phase mask or a phase generating device at the exit pupil of an optical system in order to extend its depth of focus. The optical system generates an intermediate low-quality image blurred by the aberrations of the added phase and, a sharp final image is obtained by a deconvolution process involving the optical transfer function (OTF) of the whole optical system at the image plane. Many shapes for the added phase have been proposed and they differ among each other in the quality of the decoded images within a given depth of focus as well as the noise and artifacts transferred to the postprocessed image. In this work, we will present a new set of phase masks based on Jacobi-Fourier polynomials and show the advantages and disadvantages comparing with the commonly used trefoil aberration.