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";
---- OR ----
Import directly with a jsr specifier
import { getImageInfo } from "jsr:@retraigo/image-size";
Add Package
npx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
yarn dlx jsr add @retraigo/image-size
Import symbol
import { getImageInfo } from "@retraigo/image-size";
Add Package
pnpm dlx 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";