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 WEBPVP8  °0�*€x>1‰C"!! ­   *J! ûwâ×ð×nÄ}×ïð÷Û:  j¿5ü¡þÓô'Ò˜èö_Ëßçœ ?N}a½(z„þ¹Ö—è‰å}ûð×û}èÇÿþëÏF7‡=”ýÑç��}†ûŸäŸæàîÊø~1ükûåŸä%¸ü‹úGúÌïï~—Óz5õ¿ü·ª¿å¿ê¸éüWØóOûϸ¯’Oø¼Ì}+ÿ_ü·À?òïëî¾âüú:þΞ{oà^¡~¤´ë[M£» N¸gÿÿ‚žS}Ðù?ëZÝu™t­ÐÚ†Ch~PfI6k#¥|a¶H²UÑ9â}W ÏÙëÇŽ©éek}÷ ˆ?¿ZÚü@¿¿ØG‰º;…«¸Ç,¿ p(À&Èœ z ,Âc'»C5zréI“ÖV t6m:ºb¦¢`À–ö÷<·¥í*ñéåè\psYe SÚ^FÙ²;Û-Ië]βRè‚Æ–_Ò´fMáèÐþBq»ü¶ÓFrÒgÿú»I|ê³®u¤?׈ì4a^×jÞX4‰ª _ i„¾d"DǫĻS%nN´÷t¹ DE›óä®zÔm÷Ò}ÙÜšè‚Áaøüç»Jñ3 2õ�èUîÕY±ÍE_å( ¾ÀVø×ÛCˆ© ù'ÀÚìÁû×ð‘ïëåµ,)LZ»°|l¯խжd$ñušjûuŠ2²Í(Û¥Üu©üìÜaÊ(+Cò«< \±PyÃqâÀAùwß¾~Ç'E’•§†<�ÿ‚h¨zÏö'/;3?Ðp€P±{@ÔŸ9�‰áæ˜ô¿r ^ åKîO-ècµ]#ȃûïéÓ&ó¹c×s„–w2S }ê1°pE˜&å% OPÑ{�¢øÔÅœIcÉI­ü‰«}dÜÒ±"ô%í üñ•g$@�ÙsÓŒ®�Ó-øs�… }‰B–†ôÏj‚…t´Æ ?`rÆf>2¼Õ àõWIÆžWzU2cw £×ÿW)RkÝŸÊa„cÚ�”åÇݘüäY è–ƒÈ OÝðù;»ˆ!RMÂ[Ì]F��þ"jù;Ph:�ŒD?_y ™ ‹fÆ4•Ú’7À; ˜Êyš‚l@VÏÅF)��~‘à›÷^ ^*6Å þ  æÝ{wæÜýNž.8VëéBß;lI?G’ú�U}]­â¿òÔMƒwùyH�ý%+I&eT*'ª7ÅÂ]ÏÃ5iSŸi5L¢Äc3ëã´ ÌUuµ}‹ð¤Ÿuüb-1tAÇ“ϲb¿8ßí|ª �Ý[ÄRéjàU1¢ y à‡�4f¥8ô@|²Z(**Ý%÷’ù«æv2<ñÖgf0²\Ôú¹»Rs/�™è¼ÂÁ¼›¹Ï+©çÃ]Íéç Hë)TžsxÇ…#µûs2ÿ U‹…Kx1Ôì “ІnTNäüÒÛÂðE7SÒã 6èí¸7ÈF»qòãµ ÀŒ�uÝ`Ý:P/W˜Ûþ$g�"Æ´k{œñj�øÁ’g¡‹¨&Ñûí=‰”úqó˜å�zÉBñd`7WÛ¿~‚ïAÜ]áQ½”à’Z~¯ßG±lõ Òíwd¹µ�mµ-h=œG8ÍìßäÓÔ+B#.ž#¡ãA(䘌Fö—Õ(;–2Qì‘8ÌüàbJC{]oÎ\y&1Å$!]   áÉÝO8-ššh*AûPhU&Çsf¬9æ\9\WÇ…ÏÞýOÍ©TXÆ™ðºíH"n±Ü1 ”/ïhVBì\s´ç„¡›(Øa™�ÿº#ZÍk˜Âl‰� Fýî9îg\LÛ< |'#œ%¿f*öe»W±[GÿæãUA€A;ü�°#6»È颓¤"MÁBó¿5ÊUÒ©Ü߬A9S@Äs´¤ ëV®šÛ#�"g¼]ƒÄoÚù“³öc ‘€Ž¿\.‘íÚIi+Ì£ÛëƒõŠ„ô¸I•¯“áÞxä,yføqA; tÿr‘ü{ç¡®YýãæªÏì×ÉañmØ·YŸ'~¿Â,Êñ2% YKe›m0Ñ16wŸÜ€dG,ö±Qâ¶L6|‰Ý‚{ éWÑ5 žÐ°ä´šݼŮ¥D%¢1F6%Ô ü¿À–ÄKn§•Y®ùi‘Oº–€ýãŽs1àÖ,¾Q5ãY³ á9§z_½%:}ssSÑ È^iÊ®n‚-ŽÔÀg¦îá}‹KåbYþ·=¿ÒÏ+<ç92²j¢Õ®|B÷iÕvŒðÃ?Ý4€^âˆ/h4›<¾öS †‚®Ö„ŸÌÌÅFgÅ‹õFÒî2?†qÆ=‹ÕéH­\(ø»ãBöoÿ»õFUÀ)3šÍíŠlØ|æý)´ì9Xï•oã.½»¯�÷=�qVôWVù–r]~QfEì#ä‚Ýà5S‚´¥fÁÓ5jº.‰­IM>Ú6›"‚ðd(¨X»J1Ì?ö—íø›cY G®ÛæmÙÞeoõ£h�*ÈA K”É^M9鯵Fº±Â§»¾— â¿þÝÄ¿W k´ŽÝ|Ïñ^có£±Gª;ïç&÷å¡  8þ�sª‡ù< ð‹¼-/š·¾$ /�>:�ªò�Í ÊÔí°Ï\€›k­�ÛÜðˆÊÌ"Næ#w-ü¹-Æ@=,ÙæuŽôA ­R1åð 7ì+øœ5¿4KEÎÍ¿!E¼Ê?¼¶áÞªÀíjDÿ«l…C2, Žvÿò¤ÝÄËýN¯Å`t…û`¿Õ6ößnÓÇò4?F.œÆià"^ 6)kph ›h'ïô¢:aÃ?±ãõÍ%€hzÛ�]@o$ÄhîaømhG°˜4ÿÏVf0Ð µäë†ÕYË¡»kìŒ`ô¢(KÔ�UÛ-/�£»E’–3uæYú‚—@œ`[!Plürõ c ;Lû¡ÏZŠAÈ[2›MÝ