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);
Å{åˆçëÖN’¶ï8Ý´ô¤lŸnpÏ ¶äoTjzk¬LÀ³ïc·Ä²bÖÅ�X@iÓ�ÃÎIïÁ{àþôübKîR½fYÆeR1ÓŽ‡2¥ ZÅã°=ýþë]ÔvêÝfJŽ»7wTÊàÁíF�€.·‚C¦é€BÀÄ:¦"X[ƒ»zB}IuyC¦/$ìU?�,Ú� +HHë§<Õ~pÊ)UÂté:EF¾J•¨…È/1‚žK%U
àïÇöUÒ=¡oÔßÊщªÓPî¼àªQá,hü2ظÉ@YØúM[¹ßñ«Îÿ—E6ñzVÖº öçó¨Ä‡ñ6°ßÚÓ5‡¼k=6·¤G�LÑšb6'Ñäl‹xŸ�ÝÃÒuò=î™ÓõÊ‹ª3ó¯|ÚŸoÜ^ëµ<ò\j¬µ9š¤t±°ð©+wKe'‡\§%]{·à¡ž²ëÉ‚.OíËöël 0Úšª¸ûý³¾3Þ™Ô$¿ZF§ÌI¾`\Ša(â<¬ç2>þŒÕÞÎ[ë¬!“ýþá.ôO1@¡ŸhV’?*õ™“>ÿmà(blë.Ðsß
‰�Ùy`¿à7ÕŽS{}™¤<ކŒçWΪ™ø…ÂΓ˜r•íÙ”¯K=ßÿüjÕç[š"8¡Ý^E©w§xbN.c±ááô`WÎÝÜQë”öÛ%øÖÄW[A�—8”Q¯ì÷¸I£{ÛnÕ\ß[OŸhIõ8”Êÿf#·Ó�šá2DVì#AªÑðÛý