ok

Mini Shell

Direktori : /home2/selectio/www/innerstore/vendor/spatie/image-optimizer/src/Optimizers/
Upload File :
Current File : /home2/selectio/www/innerstore/vendor/spatie/image-optimizer/src/Optimizers/Pngquant.php

<?php

namespace Spatie\ImageOptimizer\Optimizers;

use Spatie\ImageOptimizer\Image;

class Pngquant extends BaseOptimizer
{
    public $binaryName = 'pngquant';

    public function canHandle(Image $image): bool
    {
        return $image->mime() === 'image/png';
    }

    public function getCommand(): string
    {
        $optionString = implode(' ', $this->options);

        return "\"{$this->binaryPath}{$this->binaryName}\" {$optionString}"
            .' '.escapeshellarg($this->imagePath)
            .' --output='.escapeshellarg($this->imagePath);
    }
}

Zerion Mini Shell 1.0