Currently, the main loop iterates over the available services, and the inner loop iterates over the files to be processed. This means that when images need to be converted from a format like jp2, the inner loop is doing it every time it comes across the file, because it's iterating over the original file (e.g., "foo.jp2") and not checking if a converted version already exists. It should check for converted files so it doesn't have to convert images repeatedly.
Currently, the main loop iterates over the available services, and the inner loop iterates over the files to be processed. This means that when images need to be converted from a format like jp2, the inner loop is doing it every time it comes across the file, because it's iterating over the original file (e.g., "foo.jp2") and not checking if a converted version already exists. It should check for converted files so it doesn't have to convert images repeatedly.