UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

14 lines 408 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.imageHeight = void 0; const imageHeight = (image) => { const img = new Image(); return new Promise((resolve, reject) => { img.onload = function () { resolve(img.height); }; img.src = image.uri; }); }; exports.imageHeight = imageHeight; //# sourceMappingURL=imageHeight.js.map