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']
RIFFN WEBPVP8X ��ALPH¤�ëZ{"I¿~Y–e•J¥f(5÷ð2Y-G1>3ï>Áj£�#Ƙ!bff²=øOÚ1môÿx6Üvä¬5{OœðOÜ:wìpÛ¡÷ÀŒ“Ï}û×Fâ¿_×g3°´ð�·‘zudŒÕFì—¥Øõ©�Ü?ó»yÒFð�¡v{ÚH¾*,°éMÿf£Å®6¢Ï0Ôaà Uï¦Ü7ªÚZ™¹úCÖ Ž1ùY³…a*]óÓHÊä Àáä-¬ù¯æ¿Z°&Ó5×4öYÓL¹/TýQƒ{›ªg‰Ó…ÖQµ×5¯ð�¦_ã#ŽŽ»±U4�y» $ü =¨K…¸¥ç·Ü¤ç‰ÊÅ:H.Psgl)å Ôn¦RØø†’»ëJ~D20 s"™Reø²K¯>}!ðÓ›Ë;U©âGŽ&@îD2…ººJÃH¥Zx¥F7ÕÕÕ•üH€#XrÇMø¥J‘u¥\Ês8‚ /‘ñs¹ÂÀŸËe‘�äÝD.!Ï‹Pè¹ÉB·’FÁ‚¥ �`Ý ¢VP8 „ð*�*‚‚>1ŠC¢!¡l� ²€iå\)›ù†û¯âÉŸD^$¿Ü¿»Py€ýþÝüçÙ³öÜ·ä¸蟣7²7 Oì?¤¯ìïÁ÷íOûOò¿?ª78¿ zܼ3ì^éî ]7ý{ù¿íåϳƒ{Zÿ_ü�üªäI°îÿ×w@zì�ðkù·ø¿Ë¿}ÿÄx^PøßóOõŸÝ¿*¾*ÚþÝøåí—åïøþàßÈ?¢ÿ­þáûÑþ[æ+סWëá2¬›YcßÔÁAK¥9=|ã4¬‹}p +ìŠlÐvŠˆ^ÐËÌo«œMJcè’î¾ðñ*n¨Hœ�5ÞuÚ˜É_�5][§Ç5m¨Ò.ñ[ú5ã{Ú1öƒ›m|ï�®–9ƒáöZÁ© dôÝåÏ ±QV0gL ²Ì*Ï™îØÒdÒ�™êp/õ´Y4ó|ù!‘‘ ãàþÿóð쌿]?ïÔ × Çؼ·�Ñ”kÑý|óÁ¤“�5Þ'’�ÿ<-} ÁZábT¹¼VAì=îYŸõï[£·U€¶ žŽ‰h�¶ó¾ñ¯o_eDøôóv‚Ê™¼Ö럭Ç�kEYÏ™VÅÍ–Öò a+ßߦ�s�D6$0ï& pÿøZÖ‹•®}*§­61?ÿþ'2>ò¡d#CõrͤÐÖ­L¿à®rY\ô“<é3Çå±@ÈJåueŠ ø¾j±{M0¢ân­&UÍ R`:�?ÊßëÈ ?tP-ñýéîY¼þsëá~//î?Õ/3ÊLòÍÉo…4™šþ.‹0…Ê6�Ï! oƒ˜Š[² ±Œ©ñ…±ŒJÿì<×Äuzy<\çüa,-¢žŸê{Œ»…qä/‹p—̈„ sþ©^AН<²¦]Vi‡É�Kw:!… ^ÍÖ'½�FýËÇÅG¨+�í�·ìâ–’tŠ€û&¸CøÅ÷TûÌ�Ø—ù¬Çhò®o/m„ß“UaÐnÐÛ´2çs ˜Ò=‚î�ËÁÿØ€uaUœ–ŸÈ8ó¢ÈÝÜ[ �ÃN­:þã?ïœà?ÄÍ]ä•ånL‘l>§è'kÀQü”jT�”þÂ×ä>· LøFÅ/ô÷æšl,²²ßÿžÛ)ähðrN#vô_þe/ùþ2ÿ¤jsµãióÌuû‹�ÏŠðî H™¶…‡f~êYøÛÓçç;D�¶Ü¿œÂuh`�—ÄSè(ÈM¿û- H}ýÏVÉO ­"þAvfL´~WèæÛ]ÏÊÜEºÿå¢ÏÍœr"çÄéÿÿKѧ‹ùm_ª’3…oøŸ@⃣¡¢9 %h[i/ÝM£rù,]”¦|¬EI{'ƒZiY~Ý[«IÅ ®  �¿°ÙùzzD%�ã*å)P…QçTòÊñºETlk"nj’ uTß iœÇ¨˜=ÿ!"�>b±ƒ6W¹#Zˆ¹lý­ÈËŠ\¸¯» ÿε{ׄË�|ª —oö_Lΰ¼ÈÓUIöY§y×SÇB"x¢ñøóðdŸ?ê#"×F±Ãš‰p¯ÖM¯ÁÅ÷_š¹#”ÙÈÝXØ?ÿ”<©ëp;^*]jÍ ×� 4ÿڮɆ¶l ý'`§¯n{l»Ð]ù”ž6—n’è4w̤Žÿ!—õž¡“3ÂCÒiwxh육îpšÎý§Và#NPCÙ3ŠJß¾Aû€ yçU‚ñó#)zatWÙ`húCÝûqaˆs7ê¤Ü§–Ú¬pxÒžàò8_}@ˆøx’øAÄðåÐÿâ�E%ÌzÞáK¢èà[ú¼Û»Ì÷ ?°¶dƃ÷S?£N¸ÿÎ\Y&-¾r&¿û Ëá訮väl "qïÜ.Suû÷«„ áÃ6Jh%°û$ޱëŠ&3g _á×y²=–¶}4ö© hW^¨o'_‚Ë�‰)�ëÉY1K¦;Wÿãýì´#¬jtGÿå#B=Ö’ º–BÄýߎ×tËÆë*>