top of page
Portfolio

Galina

Vetertsovskaya
CONTACT
BIO
WEBSITE
bottom of page
import { wixAxios } from '@wix/wix-axios'; import { toImageBitmap } from 'blob-util'; export async function getImageBitmap(url: string): Promise { const response = await wixAxios.get(url, { responseType: 'blob' }); const blob = response.data; const arrayBuffer = await blob.arrayBuffer(); const imageBitmap = await toImageBitmap(new Blob([arrayBuffer])); return imageBitmap; }