Map provider: Custom URL

We want to use the custom URL map provider option of QGroundControl. We understand that it acts as an XYZ protocol client. What is an easy and reliable way to convert GeoTIFF RGB images to RGB tiles in jpg /png format, that can then be hosted on a simple HTTP server for QGroundControl to consume?