<?php
/**
 * Photo Upload Configuration
 * Central configuration file for photo upload and collage generation
 */

// Upload settings
define('MAX_FILE_SIZE', 5 * 1024 * 1024); // 5MB
define('MAX_PHOTOS', 5);
define('MIN_PHOTOS', 3);

// Allowed file types
define('ALLOWED_EXTENSIONS', serialize(['jpg', 'jpeg', 'png', 'gif', 'webp']));
define('ALLOWED_MIME_TYPES', serialize([
    'image/jpeg', 
    'image/jpg', 
    'image/png', 
    'image/gif', 
    'image/webp'
]));

// Collage settings
define('COLLAGE_WIDTH', 1200);
define('COLLAGE_HEIGHT', 800);
define('COLLAGE_QUALITY', 90);
define('THUMBNAIL_MAX_DIM', 2000);

// Paths
define('UPLOAD_BASE_PATH', 'uploads/schools/');

// Photo types with labels
define('PHOTO_TYPES', serialize([
    'entrance' => 'School Entrance',
    'building' => 'School Building',
    'playground' => 'School Playground',
    'assembly' => 'Assembly Area',
    'labs' => 'Laboratories'
]));

// Required photo types
define('REQUIRED_TYPES', serialize(['entrance', 'building', 'playground']));

// Priority order for collage layout
define('PHOTO_PRIORITY', serialize([
    'entrance' => 1,
    'building' => 2,
    'playground' => 3,
    'assembly' => 4,
    'labs' => 5
]));
?>