<?php declare(strict_types=1);
abstract class MediaEngine
{
public const GD = "gd";
public const IMAGICK = "convert";
public const FFMPEG = "ffmpeg";
public const STATIC = "static";
public const ALL = [
MediaEngine::GD,
MediaEngine::FFMPEG,
MediaEngine::IMAGICK,
MediaEngine::STATIC,
];
public const OUTPUT_SUPPORT = [
MediaEngine::GD => [
EXTENSION_GIF,
EXTENSION_JPG,
EXTENSION_PNG,
EXTENSION_WEBP,
Media::WEBP_LOSSY,
],
MediaEngine::IMAGICK => [
Media::WEBP_LOSSLESS,
MediaEngine::FFMPEG => [
MediaEngine::STATIC => [
public const INPUT_SUPPORT = [
EXTENSION_BMP,
EXTENSION_PSD,
EXTENSION_TIFF,
EXTENSION_ICO,
EXTENSION_AVI,
EXTENSION_MKV,
EXTENSION_WEBM,
EXTENSION_MP4,
EXTENSION_MOV,
EXTENSION_FLASH_VIDEO,
public const RESIZE_TYPE_SUPPORT = [
Media::RESIZE_TYPE_FIT,
Media::RESIZE_TYPE_STRETCH
Media::RESIZE_TYPE_FIT_BLUR,
Media::RESIZE_TYPE_FILL,
Media::RESIZE_TYPE_STRETCH,
Media::RESIZE_TYPE_FIT
]
}