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ëÆÉ‹7³í÷mÛÆ,õÜüñÛ¶öóúºÚw÷¾"b4Îjû‰Ø> k"«Í�m«1*ÒrƒU«1.Ð4�jãâŒP«±BmRÉÒÿf@ÓJ’Î'84«äˆ?À y%EìN-*<Ðk±mè ¶¬D¨@÷e2Ív½¥ò‰pª÷äÒØú 4"¸ù¾³œpññ Ù×ͰóL�æ»ÙnC¿µßm;þýÿïÿÿÿf{ðu®�³½PÈ}.°Ì}.äì/ä>VP8 ´0*�*‚‚>1‰C"!!ê­@   @Ì€Ê{OääGYNçw«òw0›Œ¿ËþU€ùóè/ó'øÏpÑÏñÿÐ?hû\ù€ýuý‡÷cþ½ûyî?ü·¨ó�ð�bÞ€­ÿýoÿîŸøGý›ÿÁþ‡ÚU_Èßà;YþïÊ>{ïç8_–Ž×ñ•¥ÒbŸ²¾~¾“öþeý;þ'­¿²OB�ØÃÔc¯ºU¥ƒC�uR³�gœ’\ä ¾’¯:6`aã¿€<«ÿû‚ëAtEÒ=Xk,Nk I‰Z› ü$©Gº;žu7tuß+$Öu¼ß�î¹!f:Ö7‡\ï:k þˆ«µùZûo0G‡m™®@¼'€]r=¾xÅáu”kõ/mßnWxÚ ¹p4e«þO¼E¢ÇŠÅ>þy$ü4ƒƒÐv‰56pPå•“‚¨Ï�²+.µœ²–€þþî¬ßö-R+Gÿ§1™2ý{¢h9ä¹¼;¨ÒR‡€.Í @'ã¯Ç÷õëÉÝ!øø·'Å6T)V«&à3=ÉÀ×Åÿúc~ �BÈôOTM¶ÿèàÿú÷ÿê=#þ ·üDúG£™ToUÈêÝ2ÅTÿÓøçüN“Yü5êiÒÎdƒ‘*ÉBŽ+#3CèuŸì¿L)/'ÛgÏW*‚®kmš|6w•.ùLüM7ÅßËv:@Ÿ‚:¡›~Ökv„‹oh=ùåþ‡G .ùH¿[‚ïàºx6ÿüHzÙñÞ«±]c—i‹ÒÕ®DÝ{Èp+wC5 x¨ÓüÕ-I©øÅEŪ¬ÌðTOù�45îz ¦wû”þ ø-Ÿ")%/ÿ0ã¼F~ôDÕ>¢~jEÇ…´&MG¡~Äù®Å$ÑxؤË݈˜+Z_ØÚP·Ü±."¸nâ^å.ÁLÌd&’#á%^àá°ÑpñŸW×qi«=ßšÊÛ�/M?'Ã’¯qîãgÑ߈±ùOúbt'ôµC´Ÿj<Ÿ´[I.úÿ­VãCºŠ\äÖFÜ÷›AÄùn¬W¹fÙ’g½ùV+.Õ„�Þò«®˜'ÚÚôл�Z媚.œŽƒýa�S#ÿ•J5þû�@l‡Câd|9À(ª´YjfOŒ–¢÷΢np�¼ýÙZgiwV&Aø¶ùî;Ÿ=ù¡wÆ£Eî™Í{ù[÷  zLqÿ«îï“}û±ÿ^ÂîB„Ñá(À9µêŸ/x¼ÂÛ¼(ÛSíÈ�J]S©—ŸGøÇÐbãLV~ÒÝ6±>%Æ&$µ „°ò|gidØ�E{%y+W€@Ú®ƒcäÖ¹�Z˜tfŽ)o} åQòН§iA µâü%ÔgÛ\µë"tûø¹�œviùþ×~z—¼*½*É]N@´÷'{Ý…•?‡vd:¡v.û†T‚½]“Ì…¹îçìkLCv¥C³à{&pRŠQlî1ÈQhyå*†WòQÿé%õl<¦€Šv'û¡wtD¬WΧ¤Õ¸€‚Ùî_âÜ£gûÌ}ýYëÌ@6¾9<g‡$gN–ŽênNnm‚m¾.rޤ䕳X§£xÆbx/J n,òU$ÿÿ88ã‹¥f�}¼5: �Óke›®­ õÜÓÚY¸ÚRˆŒP"@9ùßET�@{sAŸ¶}SV·öy¯IÆ× ¼HC¥–jÂiE ÈèvQW­ËŒ»ÿ\åL¢¶Èˆ¿3ú©�@Àȱ¢ø¾§vÍèCµ¬Þx³l�ÝPÖ(ÌÏôÉ×@l/«6CóË^œÙ¢ëÛ(/ú*›ôNŒ ‘[1�I?úõÄLN~Å«m¶&Y‚wα «®œsÄ=¶ßY�Ǭ…QCK¯Wþ‡ÿºô¿"äÔº/ûד´­,FZWúÅ_6#0´<s *‘ÔŒsE¹3JМ°ìÓ��]Æî”ù}ô~AVɲ §4±@DìÁé†Á�UÞn˜‰—«1æãP²œx3hÿð¶2]þçí,'¹³mÆ[›ÀÅõ¹äBs¹¯÷©$,*cî3¸õ���­:Á3ÌÌqÿÿŸF|d…êCjÞ›ß]t‚|5­ÿµY+µlUªném ¾7Ÿ�œ§�4—¥üci8™îœ$øËÜèpjRþ_÷H¬L€éöÒBT¾sÜBMiœÃÿ¹9€¾è–~¿lç4ÅÅ3ì¹=“&]K‰y>Ú“)³ïñjùâ˼Ûëî¶p¸vçÎz_¡ŸùŸ×ý#&/ó�°¿ôðì\9„;&š¿D/øÕÅ:jX¬_šö¾Ô¤ÌèÏòÎ_¸Í–�GBi÷Z›•½°_žm{«ã˜É|Râ,'‰ýñ~~2:ÚüÂeßïóËÃx¬¢Lâ— ›c þþL¯×å49/•n†}ëòþ-vçp©^Ɔª*­F”Þón´x¬™!bˆ\ˆý3pN¬;6ÃV—a«aÅ :¯ WñÊÞ,TÆtžž’E»ó²ïS¾r@ÍÝ‚u6d®Ãñm€0ƒ‚ôˆòY­…zewå€ÔØÃ uô6[µ¡¾†Ë£ øo%]窑¾CêNôá+OÞÔ>¦UÆ"”