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ÅŸ¢(ŠZkŠ‘•¦£)Ö}›‰ÖÉע}�ÜŸà¸è‹�‹ýÀ/rwwkÖª{õ\61ä_ÓœXZ;öW¦ 9º_0xá[°‰bðëúÝ}vÕ«íûÐýjÙ/ã°—ü§Mt�í!ödáÍÑNm¢|•G€ú?8CáÄ&ÒçØ ô Vï!4õ « Ï,Àü?XmXxo€ÖÄkDP‹@lÌFQ“EÿýWZ/^Ca�¿Ð*”†è/XýñÜÛX½¨´�pf±:­B¸J}ÀéWwLÚ˜S9ƒÓ™„°‹ÐÒJ} £^u9³�Pºþ&>Oò©„¤ÄÆÊ+3æ6wüœëp°*”ë¥^aòá¤çi%) *c:ç5O]yõé ‚ŸÞ\ÝðsžŽIa˜Œ¹cŒiõóǾßYkŒÉéX)˜t*uÎÔÖÖÖûµµµÆKU+É€DÊKU¥«S©ÌñŸJ¹•±rA�ì€ Y®b(*§T0 d�RÆŠœ3 d¿OòßVP8 ¤Ð)�*‚‚>1ŠC¢!¡š@ £·÷‹£åPý h"ç±Îyù Í•ªæsç.˜û�ùÑè¯ÌôãÅÝŸíW¨Ø_Ù_v諞ã¿P?>@?RzÄJý€?c=+ÿe¾ÿkh}¦ÿ÷æ uMüUë]ò¯¯;¦—ÃýïòC’�¨©ï½r_æÜNw�þKþsŽKÀ=€?–nÿeì§ýý¯¹Ÿmß>ÿÍÿðü«úçüoÍ¯Š¯fž†ÿ²ã§ X¨V‘y”7gñ™Â<¼HáÔ”G Uh«o�™ŽNpÄ,“ÿHÏ!zcÕK.”¤ ±˜n$õ¥û¹@ï¸*é9Hxa‰xa¨¨âpœÑ2Ŷâ—n˜¡¶E–¾ñãÉl÷j½¼+Ø¥£ºèBØãæ ÓF=è¤Ò?ÐÊ{B†À’¬¨¡Mxr«£ṳ̀–X"ȾH¶IþþÏ ôÛY„ü>I€Cà!i|ÝÊÖ©ÿ¤gûcpÔæû[Nˆ(¹sñ3™Íçÿíylº¡F¡Ñ_€§´?>-ækõéânNâø§ù‚ð¸¿?lÂ.­6‰™O«+—8óå$ù0z@McyjÖ™€1y}L_úbçû›™âìé)“ÐïÉÝ8E4ëZ|71‘Û¸,;®ï…ûO|ÑÝ->2ˆë¤>Ñ•  ~ú¡¿û] ¡?Ù“½ßîÂ1ûÿÔ¾Ò`Žc ”€Ù4³¬µ�.Q@øæÊØ®çáR¡‘’Âß) ¾”×sÑœ¦/0_°”9sМÓ%†�¿\0 +lkµÃÁ2<Ñù ÷µÐ¨‡�ñ^L™ÖX$×Ö$HÕÇõª‰› äæï1 X1ØýÃÏcI·ÿãRÿ-ÛK'˜–Œ6üvÿåѼt‡¬Uî¡;©� ±¯pk;ûZlÞÛÞ?Ãl�žd•11 êŽ_ü‰?ÚDqÂé@ØD' †4�KdâuÕ36ø<¹†^XŶj™?*ͰJø‡ÿ ^ø·+Ë"ü÷´1;c÷VR'¼ ©}³NþÊ·Úá-R7MÓž}å©}v]ë`{µ!À~íäÚOךóåÔÏuÑhTï§àC`ÏÏ„tGP;qþÝçAÀ^¯ÃóÜÜvd�t¿ˆV 3-ÕîßÖIR,[å”Ýà+·O¾YÉ#žyñûK1‡ßóË/Mo›¼!†Jþ¦· ×.”‡б cf—”œß�ñа•¹ 3òl?R»;î¥O±+ª´�^Çø9´›ð>@3Kî&Ì;U¯ÚrÛÆ”¸Ù‡9w†ÿû÷Éy&g«4� Á|¥‘O¾9Å6 �¹�ö½x˜w´Ó5å¡.TÌ›ÌGG.pB,·ÜÎSh'·×êáw®ø†FPPUʨ÷êÿ ÞªÄ%Ã�»˜«íZ½|ð%êê&Ûþú¼Ó³Ê_cŒñzûåCò°$7»ï±_;’Êî¯Þ¯ýªoá‰Õ —,xâý¿þž… Gßô$ºõpã–€.ÂN\ ¢›Êæs˜ìÇ—£‡pÅõÒ¡\�Z9EÙÐHîrûptóê úx§¤ïˆ7 Z'ŽÎû K™SÀ‡N{¨MIO´�ës W‹ Öª3}k„þ­,G·VW>j{¼\"v,’š1™ü©ç€lSÿØmüºQGŽ·KNëµµí3D‹Òðo3lM¶Ñ`c:5»$IÏÈ/¹F#§ešW367ûv#ŽbÞþ (û/c;Њ_5D€xŽ™&/d¿ ëÊV®Ri•àJÿúþ;ãGåÙX=ž€ýðq"òË¿ËÉíùq ýð}¨¢=Ï)éòû]?1ÛŸÄŸŽ¦Û½…¦·!ýÇ}ÕMgi×»¡ÛV0�pa "v̳ÔÀäpµ”ѸSJ¥2 “¤–µvjøcÞ)/íd9¨ °£\³D÷Ä2üÓœõ$û¾·- õÊ>îíÀ㯮¤G:ìp¨Þ*³9ê» è&ïŠ\+ÚËJpYQ. ÆçKœ¹Ÿ×Y/žu#èÆu¬ß¸Ã?jE#!WCʪÄä�Ã~ÞÉø'Ò � €j¼Ó¯À™ü¨8€nñ¿]ö£xóIz÷P?:U‰ºÃ?2áþ3©ÊN¡Gàø)û¸pØ ;se!B­ù3SÃ_·¬†<úÑ)¬uÀ^µ…„ÁÔ˜‹ŸsP1‡<�rÊžÅYsêÉJI ù¡î{k� ÃY£žÁls#ý’aI¦.˜=pwªè}9�ÔèÕ*sÝ©ðÄ"9î‚¡!îÓ"@ˆR7±ÿe¤G†f!ÊÚ¯{tK²fÍïÛ�Òh«ºˆúž¯ü‹¢ç} vÀÐ#ñîƒL9<¾I;Áíàöð"�:A³#fFç„�Uºç/«þ¤ #Ô÷•·­–~ìdi`#ó’°¼·c#Kwœ•…å¿x¸Øº–Æjž¡ì:Hø¶¹ŠŠøƒž‡²è¹Hè”àÕ˜ðö�k’+ÿCÍveÌØaª)ñußï Ø*öT�(•%È;ócö�ómažt€[]nx[YLÒsÿ}ü{/"qùåæ«ÿˆ