Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: Kaylachan1990 on July 29, 2013, 11:28:33 AM

Title: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 11:28:33 AM
On both Chrome and IE, when someone links me an image url that is for a png file, it will download the image instead of showing it my browser. How do I fix this.
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 11:40:38 AM
Seems like the MIME settings for the png files are whacked up...


Open up the registry editor ( regedit in the start menu search box)


Goto the HKEY_CLASSES_ROOT "folder" (see root.png)
You will have to do a little bit of scrolling but find .png  "folder" in the ROOT "folder" (see png.png)

With it selected you see something like (http://i.imgur.com/psd9QMj.png) on the right side of the editor.

Are the settings similar/the same as mine?

[recovering disk space, attachment deleted by admin]
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 11:50:33 AM
Yeah it looks exactly the same.
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 12:01:55 PM
Right click the .png folder and select export, save the reg file to the desktop or somewhere easily accessible and upload the file here

Use Attachments and other options when posting to upload it.
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 12:08:14 PM
the site is saying the file cannot be uploaded.
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 12:13:04 PM
Also do the following in Chrome (all within the same tab), 

open the up the developers console (press ctrl+shift+I) and open the network tab

(http://i.imgur.com/rZrf6uO.png)



Then open up a png file (here is a random picture http://i.imgur.com/whEDpWt.png
 (http://i.imgur.com/whEDpWt.png)


After it has completed processing the loading of the image/file

take a screen cap of the header data for the image (see attached image for reference)

You can easily capture parts of the screen by using the snipping tool built in to windows (search snip from the start menu search box)

[recovering disk space, attachment deleted by admin]
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 12:15:12 PM
the site is saying the file cannot be uploaded.

Export the png folder again, when saving the file, change the filetype to text (txt) file.

Sorry should've taken note of the accepted filetypes :P
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 12:17:54 PM
Okay, did both, Chrome still downloaded the file. and hopefully the file will work now

[recovering disk space, attachment deleted by admin]
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 12:34:21 PM
Okay, did both, Chrome still downloaded the file. and hopefully the file will work now

OK I've updated the post above with more information about what to do with the chrome developer console.
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: kmg90 on July 29, 2013, 12:46:35 PM
everything looks good in the registry for the png file type but now I need to check if the MIME types your system

in the registry editor goto file -> export

In the export dialog box in the selected branch box enter

HKEY_CLASSES_ROOT\MIME\Database\Content Type


you can copy and paste this luckily


Save as txt file and upload
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 01:42:58 PM
It won't let me copy paste it
Title: Re: PNG image urls are downloading instead of loading on browsers.
Post by: Kaylachan1990 on July 29, 2013, 05:26:15 PM
Hey, thought I'd let anyone looking at this know. I upgraded IE from 9 to 10 and that fixed it there. I tried upgrading Chrome, but sadly that didn't work.