const getSize = (src: string) => {
const img = new Image();
img.src = src;
img.onload = () => {
console.log(img?.width, img.height);
};
};
const getSize = (src: string) => {
const img = new Image();
img.src = src;
img.onload = () => {
console.log(img?.width, img.height);
};
};