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']
RIFFVWEBPVP8X ��ALPHš�3ÛÖ±I·Ú¶m»;2ÃÝ?Àˆ˜öx"þ3´MdÛ¶õÖ[o=ãï™ç»çާ"bè0³foÛÁæúÞ·è|£X=çŽbö€�y·N‰yØQæ]âgì¯3yy fy\ãǶ¬W»r°}ñQ>µÇß›|¶^i ªjvùWG¼tµÞpÊe¤¹ÕV8{5ù�R8_¥iʰ€ÜðÑ”çÙBøFP‹ï�¾]„o¡ªñ=ñÃwÈßBÂ׌ïE¾S^øV¾>|v¾>ø¶¾iÔâ{äƒï ¾…„o­Nyà³Âð©n,À Xaøœz|j®¶ àV>»ŸêÀF\òÂ÷. ŸêÀrœ€J@› àˆ®¸g@î…i¢Õ@ì ]çp¨q]0sè†Ë6Wµ‘�Ë׸ºæ÷\ö`Ë Ág à^¾¹dОœM~Cg¶íXÝæE&Ÿãg„ŒghìO¯#ü´›7ÆÎ‹8óüN0ãÌ�ƬáðiÝ÷pòˆIá3)„þÓVP8 –ð�*‚‚>1ŠC"!!È­D £·ÈÖ)ÏG®~îFü@ì"==%}¿ñãû±Ÿ8Ü×/ó>²ßÒ}€z~œõ�z~—úP~Ú|þÓ~Ìû1ÿÞysñ31V>œó´ëñèl€ìÜÙøþö®ª$^WÝ¡ÇÜš¤éY4ß+ªÞLصJÇù›o‰Í“—ñ_¶ü�jA,ú¦ÜïÐ�PÍÏ3åfFC1‘„+3»¡¼†«L�?mÄ#ßE�“v–µúOlK�Oû­˜æª"Z`MÀhÊÂFÂ’7±4»ð+ÑØöf Ÿuúö€þþÐÿøxÿÿÑû�á;�ülFÿä?�©È �àT•îOè�Cî“ñ�D4ŸÏw.é0ô˜Z¶ž�Rï~}§¸¨oæ½#@ÿÜÇä͉CnuïÍŸhß� öô?ÿy)Xy�{ìöžàî_Y÷’žû Ç;‡*¬)§Ï@y6¤üê*ô‡z�íuòqê–ø=g›¤q„ð˜œì^6úóá]Â(ëh&F:ñ6—…ÏKÕ»¯&‚ˆ-ÿSê*-o€ï§ý²÷3€J›Šæ8!îÌ\�$CʯöåG,Çäm×­þeÎüvôŸÕ›v5†hoÒ¥g2Û]OumÍè› )Sb\ê„'ÏmÆö…�×=¹oRwý¿ìÍpW7Àçí3�ý÷žje¯œÙÜy‹Oøï°‹È|v˜ä} 3q(q ¯ŸýzÉg$š¢-»Ú ‹—Õ7ðÉ<⇪Ëÿøì¿Óßœ·‡*a ߵ祖û†|ZlQá`M±jí³À(›z;ÃÉ•YÂó©“Jø£k˜äE0„KÕó6�…!|�#Z¯ EIžÑ¦¡òÓ%Oì:SëÝ0ò{Œ*8`›LᙼªA=·©ˆD³÷ B«Ër0 ÜÎ}Þýû]¦gòéõí¿ôƒÿm`Ò63.Jq”˲˜8ÇÛoÕHódKèú3z%êíþýSêl—æí{^e3Bú?ù]®ug$ŠŸ[ÙukÖö§ä#ÞJ�ÌP�L\°<ÝþÿPá¿5² ÏHQ}᪎k‚épÞG”8ú€Ÿ|œ”„öù\XZ„'…"�PÛ�üΊ•^•˜U5šz3i0ÊðZtñ9\³Þkš#Ôö Q¼Ê{0ÖüUGŒŒÜ¬ýA©ñ²,â^WÅÓMìÒßõbå"ÁÓàny~yzdK9ÿɘÊCÓ#dµ}GUxcEôÓFô=}nrFØî‡•?À¦ú¡Pš\x#Œñ¤|Çc*о÷…|`¡Ü>úî7.*D ˆÑï– Ë,ýý7ì ·ÜX-åÆÊð‡ý!3À¤O¯èyÞ‡ ÿ·ëýTR¯Íï¾4I'á¡'ÝnV&O æÙèm¦ÐŽÝÒÇE«uDîß(á™êã"Ž\ìš2)e ´RA &r+) ?ÿªõ÷DúzF~£dGÉ L€9òs—¡uù|l, 6”wdf¼­)ëàÿ¾læêy!æ›—Äÿ@ðØ