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Ÿ�ãl›"9¥_¿J¥V-×Ò�ZµÔ*mÄÌL>€µ‘9rĘa„ð ØcÄ 33Û­¥&ÿr61l†‰©¾Åë7oüÇoÞ¸d–áQñ¡=/¿�“øóýé9™‘”ø>N¨{¡)‚¶ûãľŸaš^�“ûuNˆÄíq‚ßׂ�ã$Ÿ±@ÍgšÜÙ~[Ɖ>Žà“y‹ª×Ú¯ô-Uî€@ÃwªÆÇx`×O²æ1ôê¡kÌ�6N¦ý—ö_WàØE×<ôâ5_Éóökª~öpô�òUOcÒG¬¢jÏ¡ôKš¾weKôàJ®£i—U$`C™È=JÑ];‘ͽÀR)û =Ï[bE™ÏLhû K̵†„�-À‹�ȵËs—1‰C"!!Zí  ±j eü‹ñkòwå¶«ü£ïGä.Ã?àmÞóüyüãí³Ý¿øÏalÞà£Û°þ5÷óükûüoì¾ê¿×Ûûý…ÿUüƒúOÈñßèÝa€±ßÿý—ÿà~â|þ×~×|þ¿ÿÙëÿÿÂÁÛ�÷nYÓéÿCùQëß¿4þ9þ3ò—‚¼~=ý›ý¿„ªVq´Pùoøôžž™ÔüçüGþ_ò?_Í?¬Çõ·õõû;ìWú¸jol€]¬üý‘�m½�xN‚ð󋤡G½c�7ø¹Cv�ׇuéÒO‰ƒý­R †ˆ”ÅHzº™Îk9c)¡üEŠ6ágwæ‘ð Í,TûÚ¨=’_é´"“Èn.[ÉuÇî”1bp�…´Z’?”EéFSz»~D¾ÚPŽ]�8tÎ*‰C¡DâsƒÆ�ŠÏ ¿)m›xêU‡žHÏ�í@|n`» „ä‘J§(—ëÅ«Ô�:m9PþÿÌdm³”wdB‘'öÊW¶…Û�›9„KÞ9öo]ÿçÿë×a'ó,[4ó ÇßÿùWõlI`½î•q °ïÞP÷Þ90£‰Ä¾e)†¸ N`”ÝŒ«‡ÿd~ÿ¡ýGƒRIU‹²õío² KZX!m*�U,-€8¥€TÌ‘ˆ”ìLê#;ÛwKò»7¨uЬϖö§�}ÿ¼¡æÞºñzÏ�9œ>ý ½NwïÌ=´y’$ìÿþŒðŒ®ŸsÎÁ×î¿åÌl‚Ê^hõ,æ%f]êbùqš[ï"an…ëŸBa=è¯Á.|F Äû¤Çt�Š»¯a,zŠñ©eÐÏç ¶ÀBgî6p#fíCÏW²Y m7ñb®›WÏeº ÒïöMå«Ðøt†p2Ó~§KBÍ5>/<ß =ú«ÃX®¬"ùt=1ûç¹)ƒË¢õ£­Tòªà)ú,�Ä•ê¡6Iò†¢“»’ª£–)'ždîYÛsl6vš�3“`™¦?3…dhõªb�ºËôKÁ'þ³€=Ê7ö9†+¿5Êb¦yWzvÓÞîØ«˜â »øp7§úHQ�GdÅô<Ü)�öΡfÔe:ìÝž]½¿&VØ2Éݲ»^Z*A! .ä#ξ ·àÔ…pþ•äªFï®[þ*òÀ…†ð.\púaÆ�ÿ": löü‚j`Í‚¶¦ø[XÒ!Ù¢™SP¯‹F†QÍfrÐþ®8……óù\xL±,j÷rÒÏÃeÊì��†ÆjÁ´æ*É×ê�isÓ‹¼˜ÄXwºõi$Ñ­Ù=¨ƒ]˜Í)»3`µh¥“$>çî#Àâá¬Í4¾Ežü‹©€X’ú§œ³½mµ¯U‚æcô´gœ7½Ü欉½hm‡×.ørÍTèÇÑ�ŸvM˜°o®e\y™˜Š¹‰öNÙéóBÖ—û K_{ÌûqݱJõ#÷)Ëä‘$㊹¨ÿø4¨|1Ö!–½ò]uÂI�cJÛ�í-£ÿ73©ô ÈóPÿƒ‹Gìó�¬¸‘6"¿ø5/èe‰RP…÷…®Þ�ú¼V! t7„7�#šCá˜á÷Ä"‡¹ôCÍ<- X˜[ÏÀL [,ŒÙ>ºS¡ÖÈѯž_œ,Øå:Âf£ç®NÌî9ß(v$³Mgž¶d)v‘…8� ;9� 3œ=Ž£ö0ÃÛ½ˆ-¬Pì¹µ�ä†ý•XKÚÓ¢ÂjÑ?Ïgò—NKƒ‹æ¨¬ÕmΧ²£jhÒy·H›‚{^<ñ_»P¨yüwÑUzYÀ¹X¸Û@N~ýp“_š¾r(ïß‘.·{¬Édh³'[[ ·l“"@)²ÌÏ€�ªvd«}y4L:�¤Q¼÷Þ7ÃõBrÄÜyù¡ ‡˜!8r iõ,€ÄÌ j©å’ðOÿ‚>g [�ZæþÎù»;BäP®`ç¼°3Фkâ–Ï)lRlC¹Á»1[×No p »û�ÂúZ*Ù_Êü¶nåCû¨»Äp©ëÆgbÝ•'ÚçÉùýØ)RB„À:þAl�gÿ›”þõ ™™ü–QÈ3ÁRøYOu-”ųŸ§ñ!‘ÇÆËPJo?5F¢_sÑE/Îð¾î´WûñØÈSijþ—ã2c=¦#µÌ%Û,…Ç�ݺÿnÍs­ˆ$|¸Ü@ÿ^œ¤ñS¡œ³…‚•Bv4ìº 8v6¤:Ž®]x½œ ,ÿóüœ%AÞÅßÊé‹g¼Ž~dù'…â@QµÇ:à‘¸£ô²)ðãD‡+«ïVI‰ŸØØ�A‚ËÙäk:6È]�•D¾5ë`ï"=wÑÆâÆÅÛ†ŠàV•Ù‹ÜiÔ•mZ©c�Ù\tËýbVº7 0|¿W�?"�w˜¾Ä í~°Ô­â<™C2Dðäð·ØK ¹J&ËPn»u÷y̓G¤C¶¤Œp‘ž­�ê|flŠÁösaíùÃ/»cI&5ba¶E-¤ùŠ“Ùjð^z×ÁX?e¶Ü»€n��¦oÖ+ùUn§'†¡h¬šR yku�¿vˆ ®ÒÄÃS‹áÞ¥ ~÷NL°7ú?Ú_²k£ÉÐð¾KvÕèîÿ—Ld-ðý—C+3`ôÉ¢S;þbÏäòü˜<~€