Manipulate the graphics package's list of extensions
$ luarocks install --server=https://luarocks.org/dev grfext
This package provides macros for adding to, and reordering the list of graphics file extensions recognised by package graphics.
root
texmf