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);
‚Îê¯Ã‹Õç�B:ÍãÎ~$’ÚÙÒŠ‰†S¯ïéqôÌÐÏ?~Ú’Í”AÂe�ë)AN$»¶¬ß ZFÓ¾‡¾UœÕÒ§øFŸ|¬TGÝs¨)Ã’ÏÄÈ’û“ï×¥³‘âfwÊ5³¸\Ø~ñåëkBkxI²_“oä„å-]*ËW(ª3ƒ[“Àå_©9xAOÚïŽ}©Uûîw¾åÂï,ƒb6¯EYÉ52¾æ\$F€¨Ò„tîÒ_‰`D„ce‹W×� X;öQËZ˜ÉbÂç`ãGDyžÑ´ü€oüUòóK`�ú`eNøcn[¤•ƒ8Ñù€¼¹d.aï6RªWë·Xñ¼X#ÿ†jï-ÔÿÁíÆ•§†8}›-�Ûg�h>ÿ(¡Õ§±‡é�௘۾àé1ñúd¨ùÉáðü}O7*Ë:&h%«ã0CÍa¯îo89DÁ‡RßU-JšmQú.Ù,ÐÝ¡UŠ{Ê™þ–þ¬ãJ 1#ú–¾ÑÑÙ0 ößLÔªÒYùÚ‡‘„•ÇFD@hkâõ$5µŒóúáFõÞ°ú"\=ßNâGÑ‘ó5Ú´Ò톶ï†^–:6@ñÁhY¦iPñµH’de�áºFÄhôWnYw‡Å!ýã„·–’¯R¯FAíˆ� 1:–:«.èVd¨yn?íx®ÈUè•!cTíYÞ9”µÊ7ï'úÅYØÖˆq,§´„³¼i°H6À ž¤ØÉ ½P±û¨a=U}XvÒRQ”=µÈ«lLÆëškÛ€€G]Äøê6qVøb€¡ùŠº×ËŒ-uüÿO~ß ?‰–u³6¯p›4¢33f³rÇ7¤Íôls%&»ÇZ2¤Ò¨.W¦ƒéoIß åÊ>æ�ñÄgÙ1Ô\2Á÷¬ }Õ‹ÿ.þ_T$=Ñ¡/eÄA@ù¦¿kϤÅ×r¯Ø²¦µ V&ZàfžP$»™0ã`•Kµ\l« auýwSn¾