Look into imageMagick. It supports the file types you listed.https://imagemagick.org/script/formats.php
Here's some docs on adding and using it.https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/best-practices-for-imagemagick.html?lang=en
I've used it in the past to c...