Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
loadImage from URL and without suffix may not load image correctly. #3442
Loading images from a URL (always containing a dot e.g. "processing.org") where the image does not have a suffix (e.g. ".png") results in the image not being loaded: "Could not find a method to load".
One Solution might be to include "unknown" to the suffixes to check for alpha.
Now, when one does not know which format the file is, and when trying to load the image from a URL, it tries to find the suffix via searching for the last dot in the filename.
Sometimes, web map services provide tiles under URLs without an explicit suffix. Yet, while providing "unknown" as second param loads the image, it does not check for transparency anymore (only for "gif", and "png" extensions).
Just pass a legitimate extension as the second parameter to