diff --git a/kivy/core/image/__init__.py b/kivy/core/image/__init__.py index c53716658..4ab78ef93 100644 --- a/kivy/core/image/__init__.py +++ b/kivy/core/image/__init__.py @@ -316,6 +316,10 @@ class ImageLoader(object): # extract extensions ext = filename.split('.')[-1].lower() + # prevent url querystrings + if filename.startswith((('http://', 'https://'))): + ext = ext.split('?')[0] + # special case. When we are trying to load a "zip" file with image, we # will use the special zip_loader in ImageLoader. This might return a # sequence of images contained in the zip.