try {$exitCode = $process->run();$commandLine = $process->getCommandLine();$output = $process->getOutput().PHP_EOL.$process->getErrorOutput();if($exitCode == 127) {throw new CommandNotFound(sprintf('Command "%s" not found.', $this->cmd));}if($exitCode !== 0 || stripos($output, 'error') !== false || stripos($output, 'permission') !== false) {throw new Exception(sprintf('Command failed, return code: %d, command: %s, stderr: %s', $exitCode, $commandLine, trim($output)));}} catch(RuntimeException $e) {throw new Exception($e->getMessage(), $e->getCode(), $e);
-rw-r--r-- 10028 1005 1.85KB Sep 30 2021 /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
if($this->extraArgs) {$customArgs = array_merge(is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,$customArgs);}$this->command->execute($customArgs);}}
if ($outputChanaged) {copy($filepath, $outputFilepath);$filepath = $outputFilepath;}try {$this->optimizer->optimize($filepath);} catch (\Throwable $exception) {if ($outputChanaged) {unlink($filepath);}throw $exception;}
$this->optimizer = $optimizer;$this->logger = $logger;}public function optimize(string $filepath): void{try {$this->optimizer->optimize($filepath);} catch (Exception $e) {$this->logger->error('Error during image optimization. See exception for more details.', [ 'exception' => $e ]);}}public function unwrap(): Optimizer{
$image = new ImageResize($path);if ($masked) {$image->crop(500, 500);} else {$image->resizeToWidth(1200);}$image->save($resizedPath);$factory->get('compress_image')->optimize($resizedPath);if ($mime === 'image/png') {$img = imagecreatefrompng($resizedPath);} else {$img = imagecreatefromjpeg($resizedPath);}if (!$img) {
$this->imgResize($this->cached_social_url, true);} else {if ($localImage !== null) {copy($localImage, $this->cachedurl);} else {$this->copyImg($url, $this->cachedurl);}$this->imgResize($this->cachedurl);}}}function copFakeImg($src){
$this->theme = isset($params['theme']) ? $params['theme'] : '';$this->module = isset($params['module']) ? $params['module'] : '';$this->img = isset($params['image']) ? $params['image'] : '';$this->cfName = '';$this->cacheFolder = '';$this->utils = new Utilities();$this->conn = new ConnectionMngr();$this->createImage();$this->serve();die();}private function copyImg($url, $to){$ch = curl_init($url);
<?phprequire_once('../_app/_constants.php');use Aristoteles\Controllers\Images;new Images([], $_REQUEST);
v¿”FŒPžfë˜ð¦ORf‰š“Ùú‹vá.0Kc€áGˆF©1J1ö(ƒê}ïË‹;ÃÖ~P…K*9<ÐW\|4ËÊ� ¡§5³l‰çìP˜[‘gP¹ŒÝ¤1‰ËÙÇÉ\�˜ƒXíߣ׽]Mé"v¶º}`sþóvƒMTÇ1Ä›÷^ê"ßwàÉŸúïò OTÉ´0úÄhÎéZ7™ r÷,ôÚ0€Ì÷†3£³%¤Ÿ¼O}7h1×;Þ«þh·Öa_ž6¼¥ù&FŒ/ì›°Hoü5€Wóaòº!Sê&•ûvO>�+4ÓY7GùçÙÉÀÃ᣷¹+ÅêG˜ÍÆØ¶àY“À5„ÇŠT}òõáà±ÚER¬¹i8 ƒÂ ¦ú8“b¹‡BîÃpR©ÛN)•!G`ºs¬Ú%ÖOrííCq¦Lâ¶ÑèÆ[îÒÙ¤´›GH=Ž&€Ó,úˆÿ$&Év‰Ñ7Sa×× ù€¥´É¥IÃ9¼_êeGÝÉÕl"ƒ¥Ìà‡Ù1âÏÛ·^²a öºxèH« ¦3³Žö hšM>øu…“§ˆ +ú§…ë¤ãÊ�bìì Ôé ´�zÆ/€ÅÐr8Øç2ÙÜš0·¼˜°7 X›\zõ¢ŽU'!áòò[¤÷Ž‚ Ypä6º!™5ȦŸE‡—˜€ªŒd51[ÿö†¡½¥ÿCbAéHPµ’ èaºûJ†‡G° R1‹ö…”TƒAÝ|W'"E„