Remove filename after resolving PDFCompressor Size

This commit is contained in:
Philipp Lang 2021-09-20 09:11:04 +00:00
parent e02e74460f
commit 313d713cb5
1 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,11 @@ class PdfCompressor extends Compressor
public function originalSize(): array public function originalSize(): array
{ {
return getimagesize($this->extractImage($this->media->root())); $filename = $this->extractImage($this->media->root());
$size = getimagesize($filename);
@unlink($file);
return $size;
} }
public function shouldGenerateVersions(): bool public function shouldGenerateVersions(): bool