Quick Tip: Opening an image that’s been uploaded to Sitecore

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:

Sitecore Image 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.

One thought on “Quick Tip: Opening an image that’s been uploaded to Sitecore

Add yours

  1. Luke, That was informative.
    However there is a way in sitecore to avoid downloading the files with .ashx extension.

    In web.config file,
    changes to the following setting
    setting name=”Media.RequestExtension” value=”ashx”
    to
    setting name=”Media.RequestExtension” value=””

    If the value is not set, the Extension field of the individual media items will be used (ie. JPG, GIF, etc.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: