is_image_url relies on a filename and extension being present, however, in some cases an image URL does not contain a filename. Example dataset and example URL. This could be improved by checking the content-type header of the response or checking for strings like "image" in the URL.
is_image_url
relies on a filename and extension being present, however, in some cases an image URL does not contain a filename. Example dataset and example URL. This could be improved by checking thecontent-type
header of the response or checking for strings like "image" in the URL.