MacOS – Safari has a problem displaying certain images

macossafariweb-browsing

Safari does not display certain images properly.

The latest example is http://i.imgur.com/GqQchYM.jpg which is perfectly loadable in firefox.

In Safari however the picture is displayed properly while it is loading/as long as it is only partially loaded. When it should display the whole picture all I get is black or white box. It can be clicked to zoom in though.

Safari

Safari 7.0.3

Firefox

Firefox

I've had the same problem once before. That time I found this thread: https://discussions.apple.com/thread/3796427

and was able to get it working by deleting:

~/Library/Caches/com.apple.Safari/Cache.db

I've tried that this time as well, but the picture is still failing.

The system is updated. My version of Safari is 7.0.3 (9537.75.14). The operating system is OS X 10.9.2 (13C1021).

What can I do to get the browser working again?

EDIT:

I've tried removing all extensions from the browser.
Extensions

I only had Reddit enhancement suite installed before cleaning.

EDIT2: problem persists after updating to Safari Version 7.1 (9537.85.10.17.1)

EDIT3: Problem solved in Safari Version 8.0 (10600.1.25)!

Best Answer

It does work on my MBA 10.9.2 Safari 7.0.3 ?

At the moment I do not know what is causing it on your computer.

Here are some initial findings:

That site has some bad formatting to begin with:

For example if you change the Margin to 3 instead of 0 the magnifier will no longer go outside of the image area, which is the first indication of a problem with that link.

<body style="margin: 3px;"><img style="-webkit-user-select: none; cursor: -webkit-zoom-in;" src="http://i.imgur.com/GqQchYM.jpg" width="166" height="222"></body>

The image is set to display in width=166 , height=222, while the Natural size is 3120x4160.

UPDATE:

Since It works on my computer I would say it is your specific Safari installation.

We could go in to trying to repair your Safari (I do not know a quick way to do it)!?, but to be honest, if you have that problem on a bigger scale, I would recommend to reInstall Safari. Unfortunately that means reInstalling Mavericks. So the choice is yours.