Verify that the input image extension is valid
verify_image_extension(image_path, regex_img = "jpe?g|png|tif$|tiff$")
a character string specifying the path to the saved image
a character string specifying the regex used to verify if the image extension is valid
either the image path extension or an error
The OpenImageR package uses the 'readPNG', 'readJPEG' and 'readTIFF' R packages in the background. Thus, only image file path extensions that can be processed from these R packages should be used as input to the 'readImage' function
https://github.com/mlampros/OpenImageR/issues/25