Remove filename after resolving PDFCompressor Size
This commit is contained in:
parent
e02e74460f
commit
313d713cb5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue