<?php declare(strict_types=1);
abstract class MediaEngine
{
public const GD = "gd";
public const IMAGICK = "convert";
public const FFMPEG = "ffmpeg";
public const ALL = [
MediaEngine::GD,
MediaEngine::FFMPEG,
MediaEngine::IMAGICK
];
public const OUTPUT_SUPPORT = [
MediaEngine::GD => [
"gif",
"jpg",
"png",
"webp",
Media::WEBP_LOSSY,
],
MediaEngine::IMAGICK => [
Media::WEBP_LOSSLESS,
MediaEngine::FFMPEG => [
"png"
]
public const INPUT_SUPPORT = [
"bmp",
Media::WEBP_LOSSLESS
"psd",
"tiff",
"ico",
"avi",
"mkv",
"webm",
"mp4",
"mov",
"flv"
}