Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
spatie
/
image-optimizer
/
src
/
Optimizers
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
Avifenc.php
1.301KB
edt
ren
BaseOptimizer.php
1.26KB
edt
ren
Cwebp.php
0.545KB
edt
ren
Gifsicle.php
0.556KB
edt
ren
Jpegoptim.php
0.271KB
edt
ren
Optipng.php
0.266KB
edt
ren
Pngquant.php
0.556KB
edt
ren
Svgo.php
0.745KB
edt
ren
<?php namespace Spatie\ImageOptimizer\Optimizers; use Spatie\ImageOptimizer\Image; class Avifenc extends BaseOptimizer { public $binaryName = 'avifenc'; public $decodeBinaryName = 'avifdec'; public function canHandle(Image $image): bool { if (version_compare(PHP_VERSION, '8.1.0', '<')) { return $image->extension() === 'avif'; } return $image->mime() === 'image/avif'; } public function getCommand(): string { return $this->getDecodeCommand().' && ' .$this->getEncodeCommand(); } protected function getDecodeCommand() { $this->tmpPath = tempnam(sys_get_temp_dir(), 'avifdec').'.png'; $optionString = implode(' ', [ '-j all', '--ignore-icc', '--no-strict', '--png-compress 0', ]); return "\"{$this->binaryPath}{$this->decodeBinaryName}\" {$optionString}" .' '.escapeshellarg($this->imagePath) .' '.escapeshellarg($this->tmpPath); } protected function getEncodeCommand() { $optionString = implode(' ', $this->options); return "\"{$this->binaryPath}{$this->binaryName}\" {$optionString}" .' '.escapeshellarg($this->tmpPath) .' '.escapeshellarg($this->imagePath); } }