Implement our own quicktime parser

This commit is contained in:
2024-09-16 22:10:19 +10:00
parent a3013078e0
commit f9cdc8f9d2
42 changed files with 1367 additions and 62 deletions

View File

@@ -4,10 +4,10 @@ namespace App\Models;
use Carbon\Carbon;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Traits\ForwardsCalls;
use Imagick;
use App\Casts\PostgresBytea;
use App\Jobs\CatalogMove;
class Photo extends Abstracted\Catalog
@@ -16,9 +16,14 @@ class Photo extends Abstracted\Catalog
public const config = 'photo';
protected $casts = [
'created'=>'datetime:Y-m-d H:i:s',
'thumbnail'=>PostgresBytea::class,
];
protected static $includeSubSecTime = TRUE;
// Imagick Objectfile_name
// Imagick Object
private ?Imagick $_o;
protected array $init = [
'creation_date',
@@ -102,10 +107,10 @@ class Photo extends Abstracted\Catalog
if (isset($this->_o))
return $this->_o;
if ((!file_exists($this->file_name(FALSE))) || (!is_readable($this->file_name(FALSE))))
if ((! file_exists($this->file_name(FALSE))) || (! is_readable($this->file_name(FALSE))))
return $this->_o = NULL;
if (!isset($this->_o))
if (! isset($this->_o))
return $this->_o = new Imagick($this->file_name(FALSE));
}