oc-resizer-plugin/compressors/DefaultCompressor.php

44 lines
679 B
PHP

<?php
namespace Aweos\Resizer\Compressors;
use Illuminate\Support\Collection;
class DefaultCompressor extends Compressor {
public function getExtension(): string
{
return '';
}
public function getExtensionRegex(): string
{
return '[a-zA-Z0-9]*';
}
public function make(string $path): array
{
return [];
}
public function shouldGenerateVersions(): bool
{
return false;
}
public function start(): void
{
//
}
public function end(): void
{
//
}
public function resize(Collection $size, bool $update, callable $callback): void {
//
}
}