UNPKG

react-img-toolkit

Version:

A lightweight React library for optimizing image loading through preloading, lazy loading, and caching capabilities

12 lines (11 loc) 342 B
interface ConvertOptions { format: "image/jpeg" | "image/png" | "image/webp" | "image/gif"; quality?: number; keepTransparency?: boolean; } export declare function useImageConverter(): { convertImage: (file: File, options: ConvertOptions) => Promise<Blob | null>; loading: boolean; error: string | null; }; export {};