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']
RIFFhWEBPVP8X ��ALPH‘�ëZ›"9¥_¥R©Ôhµ†¡5<ËŒ¥�˜!dò03?�åȱCË1;fˆ˜™™—š ÿÊÙDÄ�e&Ä:Wî9ðÏß³¾?C�‚ΓΡøóë¥êˆ~lÕ u´>�Cöý °#ßΡû}†ïþŸ«¬žCù·eßqú9Î!}œ‚¸îcõ2d–øˆÕ\ 5&¿£5ÌÀ€wþDk„›tã5Á©�ÀL,†ÞTÁÿ‚ՉטYÓW´Íï±ú.]&ê5¬†\Ôȳ«#ª ×R¯qúÚêSŒ˜؈ÓÑ€&` ¡®�~£ÛE3¡éWð¹/…#æ ¥JNcs½)Q9ÊÕX.µã9&¯etŸ Ä¨â‹er5kÏ>}ûÁ·ÏÏ�™œîS˜`Š/–**Ê•ÔIÙò�—²¡¬¨¨(£û\ ˆU`ŠÒ3¹$‹2‰ˆ¦0 Ö�r—Šé‰DêߟHÄB>�`@ì0áòhšCMu F�8@8rF�8 x’ÿŽVP8 °0'�*‚‚>1ŠC¢!¡i%¸ ´�Ø(áÔçÿŒ½V½zõw÷SúŽ˜ÿÅ>¨}[ñëòØÏÁ¿J¾‚¿Ä©~H~Wq…Ä?”ÿvþ§ûYý«ößÑWÐ`‚Ê·þOz¹xEø—õ_pä?Ì?Åeý®ÿô‘û7úïï¹_áý þ[ýÇýWå—Ðñ¿åßâÿºÿ~ÿ¹þÿÿÓǰo×ObÖÂ#¨E¸vZûB±:"{[à”3r”×iÉ/zëO‚8徭ž°Á­Öz“ʃØpa¥Q×ySQŠ¢VÛKÏ8uß×ì¦#ô?:-u+ƒØdPeZlj¸+¦s€Jß0m$T\dðc(ÁQ+¢¦Ue‹…OÓ««ÛöPâ,- MoE?ƒD‹“\? {ÁàN@üÊ2{Oý['Š[þÿÕÉP<ရ6`¯p”ùj±†Oiů<­‰à[IL:Ct¯ð¬BWéÂÝh*òë1äü�Fñ ¡Ž¥Äãcƒ~ëǸ£ð7„»òIoMZ?¤éÁ ½¨©b/O†%Æ2X:c,Š@¤Ÿ}ÂU^þ$�îEcǽ]Þ\š»<¢+¡ã¾ YËÄê*ïÿgtû*/@Ń¡U£ß½�×·Uc,À�s¡¤BÓ3ëÅ/…&Ÿ,)ÿ °0$ŠzñSÒø[|ÐTB¹çk©2 êÚÅÆl–K°³û^½ž/ºj‡xb4©=²}�O@*�ÉD@ó ·ø}"�¤ ÷�1�Âö§d¬¢CÐVÎ\¥ ÒeüÏ“¤y¥[ùN\)EEßü‹“ˆáQ±�ÞÙZÖ¶Œ_ÃrŸÌžÒÄAPŸŽÁx)Dç2v¥lF¼á…3çPÿ$U±èkýêØÝx@̰ ¡…ºÛ!â¿ýBÆüæH‹§èY޹¶À`_}’öw 8àD…ö3Ãâïgš)¨%Ö†êHîì3¾á Ÿ>ÏmWz”Nœü ùårüÿ?ØL&ØÿæLG”~µÑ#-oñ­gNªÜ—0U"ÉÆ9šì?og ´Œf'û‘„%k÷ PQ¹­ 3Dß* "ÿf†Ôw·4tÞaó§Ÿ=¥æêv2ï˜>½=°]§QÞJÛ¹ó¦‹ÆcWpòóp4ÅÑËZý ë¿ëéIýÍè?ë^%.®@&�¸l‰~�´={Ã/=D_r7¡ÿø‘¾»nß M®˜˜»Ûbòµ‚]ÞQl{w¸¿_ÿø“ÅÁ¦*¤_ºáœ¼ïšYÔiÄFWHTƒ‚<þê2Œ®Ài2¯÷ ";XêÀÊ=¨Ußãå þä�iR;ê'(°%Ps~À *—͹‹’~Ñ[»º@T²v±´«þ[âê}Þ!»ÿþyß½¶zÛã’Ï„�ëVb6×iñëÙ´ý.˜ªØ’óV^8Áö~ÛH=÷p�Ì ÖåDäz&-u«^M¿ÉËC¶Åß o ÿ#&ßþº’ÆÏãy-"·Jhé0µ)D>–_C©?¦h¸¿³¼¶'èë Z+•æ£{|ê-äWa]’p¡' }îöWÀ§Ñ8¸! N“ HÿÉÚM™B_n¼Àÿ¡„1 #¶«ˆÂ»oih %ry6ƒZ![ØÂ.¡ï éïCÛÓC‰ f˜˜#®ˆpŒâ,å[Bs_»î7ŸÛbÀÕhU›xMÀ?zHfÍxn2wã­…Tâ´ËI~î˜&z�{Ã4·[å¾-rw± Oõh$ZÅó%�6 ¿+Äã®Iÿ(\o£b;PÊI«s¢Èª: wn “bsî�aäÎ=_‰K[9s\­}G)Á÷C×¥ŒÕªs¹œ3Óà 8ÑÅ'ãm„i¥((?ì;ÔÝõ„.<\¡øªŸÝwïåt,Ž£N[$ˆ 7œ#Ë]®´kÞ1¬Í°Ä;,YK°