Have you ever tried opening or editing an image file uploaded to a Sitecore website, only to find that its extension is .ashx, and won’t open properly? No? Well I have, and I’d like to share a quick tip about how to view it in your image editor of choice.
Images uploaded to Sitecore can have their extensions changed to .ashx, which most image editors don’t know what to do with, but if you look closely, the MIME type of the image is still intact, and can be found within the code inspector:
Here I’m using Chrome, but other inspectors should show simliar info. All you have to do now is download the image as is (right click the URL and Save As), then change its extension to the listed MIME Type (in this case, “.gif”). From here, Photoshop or any other image editing software should recognize the file and save you from having to download the original from the Sitecore media library.
Not something that comes up everyday, but hopefully helpful in a pinch.