Arch-Linux has removed FreeImage from their repositories. It still is available on AUR, though. Other Linux Distros also have removed FreeInmage Lib. A comment on AUR mentioned that there is FreeImage Re(surrected) to be found here: https://github.com/agruzdev/FreeImageRe but that it is not packaged so far.
Maybe Homebrew can help? https://brew.sh/ https://formulae.brew.sh/formula/freeimage#default
Support for self-defined peridodic functions