I'm using the following to detect an EXTERNAL image's extension:
$url = (POST_IMAGESELECTOR);
$path_parts = pathinfo($url);
$extension = $path_parts['extension'];
All images come from various external sources. The sample above works 80% of the time, however, it fails when I run into an image without a traditional extension. An example would be the image located here:
http://media.kohls.com.edgesuite.net/is/image/kohls/227522?wid=1000&hei=1000&op_sharpen=1
What would the extension be on an image like this? How can I return the true extension?
Thanks!