import fs from 'fs';
import probeImageSize from 'probe-image-size';
export function getImageSize(file) {
    if (file.tempFilePath) {
        const data = fs.readFileSync(file.tempFilePath);
        return probeImageSize.sync(data);
    }
    return probeImageSize.sync(file.data);
}

//# sourceMappingURL=getImageSize.js.map