- Web-based image processing application using Clipping Magic API - Batch processing with PNG and TIFF output formats - Microsoft Azure AD authentication integration - Automatic file cleanup after 24 hours - Real-time processing status and bulk download features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
No EOL
1.3 KiB
PHP
Executable file
45 lines
No EOL
1.3 KiB
PHP
Executable file
<?php
|
|
return [
|
|
// API Configuration
|
|
'api' => [
|
|
'key' => 'MTc0MDM6Z2x2MjgzbWtnY2s0MGYxcTAwc25yNjBlb2pwM3MzczJobHI1bzQwZXM4N20zazVlM2c2bA==',
|
|
'base_url' => 'https://clippingmagic.com/api/v1',
|
|
'endpoints' => [
|
|
'images' => '/images',
|
|
'delete' => '/images/%s/delete' // %s will be replaced with image ID
|
|
]
|
|
],
|
|
|
|
// Directory Configuration
|
|
'directories' => [
|
|
'upload' => 'uploads/',
|
|
'processed' => 'processed/',
|
|
'temp' => 'temp/',
|
|
'logs' => 'logs/'
|
|
],
|
|
|
|
// File Processing Configuration
|
|
'processing' => [
|
|
'allowed_types' => ['image/jpeg', 'image/png', 'image/tiff'],
|
|
'max_file_size' => 10 * 1024 * 1024, // 10MB in bytes
|
|
'formats' => [
|
|
'png' => [
|
|
'format' => 'result',
|
|
'extension' => '.png'
|
|
],
|
|
'tiff' => [
|
|
'format' => 'clipping_path_tiff',
|
|
'extension' => '.tiff'
|
|
]
|
|
]
|
|
],
|
|
|
|
// Error Messages
|
|
'errors' => [
|
|
'upload' => 'Failed to upload file',
|
|
'processing' => 'Error processing image: %s',
|
|
'invalid_type' => 'Invalid file type',
|
|
'file_too_large' => 'File is too large',
|
|
'api_error' => 'API Error: %s'
|
|
]
|
|
]; |