astro-image-exif-loader
Version:
Astro content collection loader for extracting EXIF data from images
21 lines (18 loc) • 607 B
TypeScript
import { ImportedExifCollectionEntry } from './types.js';
import 'astro';
import 'exiftool-vendored';
import 'astro/loaders';
import 'astro/zod';
declare function imageImporter<Entry extends {
id: string;
collection: string;
data: any;
filePath?: string;
}>(entry: Entry | undefined): Promise<ImportedExifCollectionEntry<Entry["data"]> | null>;
declare function imageImporter<Entry extends {
id: string;
collection: string;
data: any;
filePath?: string;
}>(entries: Entry[]): Promise<Array<ImportedExifCollectionEntry<Entry["data"]>>>;
export { imageImporter as default };