owncloud/apps — pull request #1106 by lupusmeatus (2013-05-14 10:22:23+00:00)
Title: image.natural...-Fallback

To work around the missing natural...-properties, I think we just have to make a new Image(), set the src and query the ...-properties. I added some code.

Code is untested. The code worked for me with IE10!

Testing the code on another machine with IE8 was not (easily) possible since the same owncloud 5.0.5 Installation had several issues on this machine with IE8:

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)
Zeitstempel: Fri, 19 Apr 2013 13:17:32 UTC

Meldung: Expected ')' in regular expression
Zeile: 730
Zeichen: 471
Code: 0
URI: https://.at/remote.php/core.js?v=ff4d5fbbafdf976cfdc032e3bde78de5

Meldung: Object expected
Zeile: 314
Zeichen: 1
Code: 0
URI: https://.at/apps/gallery/js/gallery.js?v=ff4d5fbbafdf976cfdc032e3bde78de5

Meldung: 'jQuery' is undefined
Zeile: 1
Zeichen: 1
Code: 0
URI: https://.at/apps/gallery/js/slideshow.js?v=ff4d5fbbafdf976cfdc032e3bde78de5

I did not dig any further.

code released under MIT-license.