let img ; /**
 * gets the original width and height of an image element
 */ export function naturalSize ( image ) { if ( image . naturalWidth ) { return { height : image . naturalHeight , width : image . naturalWidth } ; } img = img || new Image ( ) ; img . crossOrigin = image . crossOrigin ; img . src = image . src ; return { height : img . height , width : img . width } ; }