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']
RIFF&WEBPVP8X ��ALPHŸ�ÅþŸ!Iÿt:³¶mïãÙ·Þ}<Û¶mÛ¶ùdÛöÚ{Æz'�N§RÇAտΈˆ €?QëÜC}íE9?ý�¢U>;Ô-T“óv•~]ËŸYKŽã�Rjì«Ý]B-"·Ê§&UÓÆ9 "ö¡&'•gúùãç½–P3“{s›9KˆÙ�{G™|saP¤©Ï(»JñÚGt¤Ø ”uåT�`&¾[UÊ£öh”3¶ãÊ)·…)(H)Å”g2Œ?©ÎʹÚ�7Ï­*å¾2˜+ËqÕÃcéÒžP$ƒ¹©sƒ¢9…×­*Åó¶C*)Ûª™29еɦL«7L7S1{¡e¹x~¤ Ã�iRJÙ%¥;›É€M3=e¶ôX;Wø2.ž/(£ä^?w0—õ”IR<7\ƒQqÕ3@^l�“ÀXTzQ³WLp¢²ßLäÎ W0-*™æPsgGƒÉQ©4]éê:–`FTªMvÁÌ+‚c– ºt[^¯ÐZ|Ç@|ó¿fþ÷ßÏ¢)ß�ħ�ß%Ix¤ˆNi¢ËŒÑdS9Iá¬4¬|©+°ŠJ¸b€~£?°‹ !_9,ãÝŠ5J•+ Àö\Àº^—6Ñ2|]®5j#ƒ×�1Ö÷ŒFùçÌ:�bÈÙJ*1‰C",¡ZõŒÈ ‡þ4&ï§üoâ¯ä¯Ì­¡û‡àn=êŸË—ÇLÿ…øïý'µGˆÿøoéß³Ü?‡CÿAýïÝ»ý¨ÿ@èÒýM¿ÝûÿLõþþËÓöà›öƒö¿à3ø×ôÏùߟú+㨲ø9DÔÙ.% qR" ßÚ€®Øo[-ÄóÖÓËíK¥©†Ó‘MUûh÷ÖfQ0‡$9Å�d&%vßɾ×|Š4Ó³æZ ™ùT™ÎX%H\™�‹fxß·z¢‰¸(ÑB ±w:~ã›=5�,m_¾y¾«S¢¾QcÀL2ª¡AsNƒ¬m‹Å£Ëý5ï«„By}óüOœí… êAøþ‰˜O÷2ó�¿Ë”y£oÔ‚ ÈÂí¬J‹�ѧjª¹l7¥Jê%üÇó/ñ™‰Íƒÿe<'Y¹Ò‡êL™(tra¥{ô½~òKa|a;’ßxØß¬çT O:%ù�Çéd¡Î§ýB¢ÿoÇÿî?ÿÛôíå6,Ï©åõ•Á~&¦Ï¤òR^'‚×¼˜y­¸ûÍcþÿÉŸ)Qû* ƒkñ"†6&í<ŸÜp“�3ƒÆåã†|Ä©ÇgúɈº"YŸqã‰)2H2ËBûÍùux;Åàºîíq¦Víê9#Ñ©jìÓÌÔÇqa�וB@ü�Š.ûîQ¥I‹fµ5™µ¼ê¨�Õ,tñ_ãLÝ7Ú%KØÀòêt—ÜTéH¸˜+âÉy�YíÖX ÷ y0;.äÝm?OÁš¢VNýáO6î¡�.¡4þ%-ϵþùˆa÷Æx[´EШÅDür:²ûÉîc`^N~VeâµAƒÏ�õmžSîvQª=o¢«7,{åÙö‘E�oh|AÙœ¬]º«C‹8“ kð5‚8BÂÎÿ6”s?Ž;ù¯¾ÄÏ š—DV‚kht¯´Â¾d»—‹ Çú¡(ÙÞœ¯T™ü‘GâÈš…¦û»Q*›.«bžçöî|üûÏ£T$À‡úr’éß…¥â,ç5ÖÖ±ˆùóňô5 ù$�a¸ØÖño‰÷då�–fbƒÈw¼ì¨~°ð±Œ×Çp£ÿÃÒâ8âÛXÌYBÚ<>;ªRl uz9ÊãqN™ žh«zN]ûÂÔ™Ð+àÙÝüóy�Íh.HÔ‘‡Ðh Èv¿ žÕÇ0)¯O­YŸÃ†Î-wý‚f{¿¦ Hr@üÒ¦±3¡¤ÒUr+˜NÚ]m3¹xqn/}—ù(­÷¸"vÒJ³H‚6 ²e~èí�ø“LÛõ"LÀb ¬7¸Ih%ºÄÜRxl-2 ´X#’epxF@Ò�Ï