UNPKG

@prezly/uploads

Version:

Types and utilities to handle uploaded files & images in Prezly

19 lines (17 loc) 498 B
import type { UploadedFile } from './UploadedFile'; export interface UploadedImage extends UploadedFile { /** * Original image width in pixels (before transformations applied). */ original_width: number; /** * Original image height in pixels (before transformations applied). */ original_height: number; /** * Array of transformations to apply. * * Example: ["/preview/", "/resize/800x520/", "/contrast/25/"] */ effects: string[]; }