getImageInfo(bytes: Uint8Array): ImageInfo
Get image format and size from byte array.
bytes: Uint8Array
Byte array of image file.
Image width, height, format.
getImageInfo(bytes: Uint8Array): ImageInfo
Get image format and size from byte array.
bytes: Uint8Array
Byte array of image file.
Image width, height, format.
Add Package
deno add jsr:@retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Import directly with a jsr specifier
import { getImageInfo } from "jsr:@retraigo/image-size";
Add Package
pnpm i jsr:@retraigo/image-size
pnpm dlx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
yarn add jsr:@retraigo/image-size
yarn dlx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
vlt install jsr:@retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
npx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
bunx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";