UNPKG

pixel-forge

Version:

A comprehensive generator for social media previews, favicons, and visual assets across all platforms

80 lines (79 loc) 2.02 kB
import type { PixelForgeConfig } from '../../core/config-validator'; export interface PlatformOptions { title?: string; description?: string; template?: 'basic' | 'gradient' | 'custom'; includeTikTok?: boolean; includeYouTube?: boolean; includePinterest?: boolean; includeSnapchat?: boolean; includeThreads?: boolean; includeBluesky?: boolean; includeMastodon?: boolean; } export declare class PlatformGenerator { private config; private sourceImage; constructor(sourceImage: string, config: PixelForgeConfig); /** * Generate all platform assets */ generate(options?: PlatformOptions): Promise<void>; /** * Generate TikTok format (1080x1920) */ private generateTikTok; /** * Generate YouTube thumbnail (1280x720) */ private generateYouTube; /** * Generate YouTube Shorts (1080x1920) */ private generateYouTubeShorts; /** * Generate Pinterest Pin (1000x1500) */ private generatePinterest; /** * Generate Pinterest Square (1000x1000) */ private generatePinterestSquare; /** * Generate Snapchat format (1080x1920) */ private generateSnapchat; /** * Generate Threads format (1080x1080) */ private generateThreads; /** * Generate Bluesky format (1200x630) */ private generateBluesky; /** * Generate Mastodon format (1200x630) */ private generateMastodon; /** * Get HTML meta tags for additional platforms */ getMetaTags(): string[]; /** * Get Next.js metadata configuration for additional platforms */ getNextMetadata(): { openGraph: { images: { url: string; width: number; height: number; }[]; }; other: { 'pinterest:description': string | undefined; 'bluesky:handle': string; 'fediverse:creator': string; }; }; }