function getImageDimensionsFromBlobImage(url: string): Promise<{ width: number; height: number }> { return new Promise((resolve, reject) => { const img = new Image(); img.onload = () => { const dimensions = { width: img.naturalWidth, height: img.naturalHeight, }; resolve(dimensions); }; img.onerror = (error) => { reject(error); }; img.src = url; }); } export { getImageDimensionsFromBlobImage, };