imv-dir is a wrapper for imv that auto-selects the directory where the image is located, so that the next and previous commands function in the same way as other image viewers.
Note that this wrapper supports only a single image. For opening multiple images, use plain imv.
imv is written and maintained by Harry Jeffery <firstname.lastname@example.org> with contributions from other developers.
Full source code and other information can be found at https://sr.ht/~exec64/imv.