UNPKG

@aivue/image-caption

Version:

AI-powered image captioning for Vue.js applications using Hugging Face BLIP models

26 lines (25 loc) 1.17 kB
import type { ImageProcessingOptions } from '../types'; export interface ImageValidationResult { valid: boolean; error?: string; warnings?: string[]; } export declare function validateImageFile(file: File): ImageValidationResult; export declare function resizeImageFile(file: File, options?: ImageProcessingOptions): Promise<File>; export declare function convertToBase64(file: File): Promise<string>; export declare function convertUrlToBase64(url: string): Promise<string>; export declare function getImageDimensions(file: File): Promise<{ width: number; height: number; }>; export declare function createImageThumbnail(file: File, size?: number): Promise<string>; export declare function compressImage(file: File, quality?: number, maxSizeKB?: number): Promise<File>; export declare const imageUtils: { validateImageFile: typeof validateImageFile; resizeImageFile: typeof resizeImageFile; convertToBase64: typeof convertToBase64; convertUrlToBase64: typeof convertUrlToBase64; getImageDimensions: typeof getImageDimensions; createImageThumbnail: typeof createImageThumbnail; compressImage: typeof compressImage; };