Kint
$message string (64) "Error during image optimization. See exception for more details."
$level string (5) "error"
⧉⌕$context array (1)
⇄⧉exception => ImageOptimizer\Exception\CommandNotFound (7) "Command "/usr/bin/pngquant" not found."
$context['exception']
  • Source
  • Properties (7)
  • Available methods (10)
  • 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);
  • protected message -> string (38) "Command "/usr/bin/pngquant" not found."
    private string -> string (0) ""
    protected code -> integer 0
    ⧉protected file -> string (118) "/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/imag...
    • File (1.85KB)
    • Contents
    • -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
      
    protected line -> integer 44
    ⧉private trace -> Debug Backtrace (7)
    ⧉.../ps/image-optimizer/src/ImageOptimizer/CommandOptimizer.php:29 ImageOptimizer\Command->execute(array $customArgs = array())
    • Source
    • if($this->extraArgs) {
      $customArgs = array_merge(
      is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,
      $customArgs
      );
      }
      $this->command->execute($customArgs);
      }
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/ChangedOutputOptimizer.php:34 ImageOptimizer\CommandOptimizer->optimize(string $filepath)
    • Source
    • if ($outputChanaged) {
      copy($filepath, $outputFilepath);
      $filepath = $outputFilepath;
      }
      try {
      $this->optimizer->optimize($filepath);
      } catch (\Throwable $exception) {
      if ($outputChanaged) {
      unlink($filepath);
      }
      throw $exception;
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/SuppressErrorOptimizer.php:24 ImageOptimizer\ChangedOutputOptimizer->optimize(string $filepath)
    • Source
    • $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
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:104 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $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) {
    ⧉.../_app/Aristoteles/Controllers/Images.php:218 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • $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)
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:31 Aristoteles\Controllers\Images->createImage()
    • Source
    • $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);
    ⧉<ROOT>/image.php:5 Aristoteles\Controllers\Images->__construct($methods = array(), $params = array())
    • Source
    • <?php
      require_once('../_app/_constants.php');
      use Aristoteles\Controllers\Images;
      new Images([], $_REQUEST);
    private previous -> null
  • ⇄public __construct(string $message = '', int $code0, Throwable $previous = null)
    new \ImageOptimizer\Exception\CommandNotFound(string $message = '', int $code0, Throwable $previous = null)
    public __wakeup()
    ⇄final public getMessage(): string
    $context['exception']->getMessage()
    ⇄final public getCode()
    $context['exception']->getCode()
    ⇄final public getFile(): string
    $context['exception']->getFile()
    ⇄final public getLine(): int
    $context['exception']->getLine()
    ⇄final public getTrace(): array
    $context['exception']->getTrace()
    ⇄final public getPrevious(): Throwable
    $context['exception']->getPrevious()
    ⇄final public getTraceAsString(): string
    $context['exception']->getTraceAsString()
    ⇄public __toString(): string
    (string) $context['exception']
RIFFWEBPVP8X ��ALPH ÇüŸÝúe2i^lšÍ±mÛ¶mÛ¶mû\Û¶mÛÖ‹o6ͦi&ß‹íT3]EÄÐÿ|/Á´—÷b7í­ÁÇe4×è<ÄA½%^àôÐÚ<'4Vï<²îdÚbw#ûù&Úš&<𲩩j?Â[¬Ò“q7dÓ�´4"#…§¹†*ü Ÿs4t~ ªi§›ã wrÍ”ùþ�)zá'dA­t±Áí\#yï#X§�F6!è/Ëh£ÅåÀpœk"ñ2‚·{ib•Ÿ&´Ð,…P�2 O"ÜT Ì!áuSyÕ ¶X£ºœ§¾ÝNqcœàYCi•ŠÉEJ»Ñ,ª¥°anDðx޲Ê|ލ:STÅO#ºV5Eõ³#„¹’’_#Êî8%m‘·eÔ,�€ Ü€pœ)§ÄÛT|<#ÑìÞËÁd†¨†íA¸ŸI¯ws:ü˜TL³ü‹7'$(;ku2N2¥ä¼ß΋ƒ8IW8[à/ÓF)K„Ÿô³]rÈ/«°÷g?x·„Bj�‡¼ó`;ƒ­´¦HȉíêÈ{ÒöÍ]^aÅ÷RHµSÆ4WæâÍMÉ–qÿ†L‚È\ö± ^ÎQD Þç�×à$É«mÿÑ.?ÞÉ” 2Ç}îzaSÃ�ð´×"éwZÈî¼½À� 2Ç|éeÕR‘Í:X�dÍQ/ H[›ê1/"6îM‘�æ) Â� ¾Ü’$IÞh·%à;óô ¤ïótú/b^üŒ[ˆoç•"ÉDŸ/#X÷ÓU•˜‘ÑáÑ4€‹õb7ȾžW†$Í%o;±àl/"£ÛÝ.p?‹Y™oŇ3rÈ›7;h!l÷ùa¦5»3… 1Ûûê€ò.ÑïeQt]W‹{¯rõ»•b•ì’ OVbÝç¢*¬{[ÙˆX�V±’d�N Úγ³ÌlŠ,1ìE1´Ö4`Šàµ6ýì"¦©G»™ à�î·gçý%ɘ™Ó^vûŸ÷7`ñ©³éû´z&cGðâýrâRªZkÔ¨ÉJF\þ÷ÿß/VP8 ÎP�*‚‚>1ŠC¢!¡ÉÍ ±Ž¥JS†x€6Ÿí¿¶~FspŸz½`tEެ?ùsýÛÞ¨0oÒì�@<À~‘ÿ¨þÝîíø�îƒÐõ¬ËÐ+øW÷Iïùçþ ?e¿k~•@ÿgùÎOD3Ûéÿ\þNƒJÒ=ì(ýµ’í dsÅŽŸãµ²LfüïÑ@ÿ ×é%Gì|Nhö_ØéF´»RÀ…8©ÉK£®ÈÍæ…CkŒ{ ´ÿ˜þîz@¿ý´¥)ÜCÒ6Š*Þñø«s8ü±ü¿âÙ ¿ÕF´îIJ)÷úlÕ0%ïÝã8û¡^@ÅHhPSŽù¡õïéhæV €FoߊNæ¶ä]�ô{ú]Á¦‡¤:%ÓÓL�rB-ÊÕV¡—SnbÒœuóÔçgi´uùeþ»<�‡–‚4ÿ„ «À^K¿Y–D ÿî+//tÃî Sÿ—ÃÿDa1°…7•�'_Ḍڰe¦ý·ÊY#ªæk)‘ƒÝÙæ• ¡E7WC�áF˜ìP"u˜mF½¨(#C(ý›œ¬�?1)aÞWÒy./Q˜SàUÉlhríáÿýlÇ;¡ÐÇñä5AM8xs)ò~ݙ럮‘Z9Þ½Ì&•€‹Óæ(¹ÈLuIKrè¡{¼/Ü~}¡µˆÏ99/©¹8ê– iY>d£d™¼Åo¼qî[Óü�ÎÕUÕ3Ôÿç'2gF¯„Õ¦‡ìjƒþ0Á,sËËlOŽÚS•PgCN•䑉¬Å‹4"›{a é¡*Åwü§Ó_…ê"¿€~0W~Œ^ Ñ†o×›ƒ�>!ÎÓ•<]ã:8Ù�¼ž¸µ� §ŒÉ„lú^am�3úE�DA7ýw㘀ÒTpBWÊd¸L%må¥-)íX0ˆ¬óÿǹ+Îi¿½Cb³ür,�øsFŒ‡0%Erfç¾ÛcaoØ£ÀPüØ‚w÷*Vh-ÜñØ~dšüþÿ¿ÕQ$?²,ÐÌZð㎻Ýã!ðÖ‹&SN™@ìàœ�Æúm> ˆ�F|m ]ZºÜg6ïÃø•,ÑÐ^§•4ßç,SWPn>˜–]«ëéÔQVð• eG2郙#šiTU.ÿp£ø²}“ûìÚZcxX^ð‘êk£fAöa®ï