Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
vendor
/
spatie
/
image-optimizer
/
src
/
Optimizers
:
Gifsicle.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\ImageOptimizer\Optimizers; use Spatie\ImageOptimizer\Image; class Gifsicle extends BaseOptimizer { public $binaryName = 'gifsicle'; public function canHandle(Image $image): bool { return $image->mime() === 'image/gif'; } public function getCommand(): string { $optionString = implode(' ', $this->options); return "\"{$this->binaryPath}{$this->binaryName}\" {$optionString}" .' -i '.escapeshellarg($this->imagePath) .' -o '.escapeshellarg($this->imagePath); } }