oc-resizer-plugin/compressors/DefaultCompressor.php

44 lines
679 B
PHP
Raw Normal View History

2021-09-09 19:18:41 +02:00
<?php
namespace Aweos\Resizer\Compressors;
2022-02-15 18:15:58 +01:00
use Illuminate\Support\Collection;
2021-09-09 19:18:41 +02:00
class DefaultCompressor extends Compressor {
2021-09-17 13:29:16 +02:00
public function getExtension(): string
{
return '';
}
2021-09-17 17:09:17 +02:00
public function getExtensionRegex(): string
{
return '[a-zA-Z0-9]*';
}
2021-09-09 19:18:41 +02:00
public function make(string $path): array
{
return [];
}
public function shouldGenerateVersions(): bool
{
return false;
}
2022-02-15 18:06:51 +01:00
public function start(): void
{
//
}
public function end(): void
{
//
}
2022-02-15 18:15:58 +01:00
public function resize(Collection $size, bool $update, callable $callback): void {
//
}
2021-09-09 19:18:41 +02:00
}