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']
RIFFrWEBPVP8X ��ALPH¹�ÄìŸ!f“ÉfSÛv{ìɶÍO=ÙýlÛ¶mÛ¶Íͦ66›¹ngþó1è/•ØÊ7¡pô‚-Ç®½ytíÔŽ%JSüа‘KLùŠ�ºÈÈö½8·¡>ÍÃL»¤,ºòaˆÐ«H·Öøpó^ ‡>­ÊЃÀ bYay`K– c£_ö¥y> ™Lê!0lrc'´8{ÊDtfX™Ð'¬ Оӡ.C‡4Ó†Ïx?éQ&J)F´É©&´µüq@þhù�y±å‚¶ ?„u*á¦fõ„£Z™IüóRøç£þ÷ß_­¼þ™IüCõßâ†!î!°ê„¦Ç†x¢µØò›‘ü ÐòËÀ€#Êð€¾èQ†²TxF#Ú…àœÐ¡ Ó€9¤ƒXL‘é(LjM³±2=kܻկ�§9 ¶qÔ†•¥¾"P'nÎ�&zž­È3C`b›¨'Þ(©_.,Êp¸¢ELý¶Kï”R¿\Û3!ÃNÄr·�œòi+v»pã΃GOž=yòàÞ�K§v­šU[åc€þîVP8 ’#�*‚‚>1‰C¢!!X�Ä  ‡4Ǭ/Ô¯Èódô×|ù�Nw\œûnù³þ?ÕÇŠøîª~b¿gÿ]=çÌú˜ôþ{üC¬£Ð'ögÓ+õgàûöWö£Ü¯ûçþû±Õ ø}˜oû]y¦#üûôçÙ/>TyÞö!=AÕÀœT¶!ݪf<%ñÛý ß >ý÷6o'¨ûLYÞPwßa@ì.ð§2÷YôØìƒv7s¦i ‰Éb�N�t ãY·5ÿZ±³î,–-MÀï]$@§U<¡7Ã}–\–ò<{¿= γŒºòf-ÿÇþý_05åOÕ:ÓËÌâ:3¶^éÁð|3}>Ù_'ƒƒéf¢÷8$HݤŒþð‚ïÿûí™ý¯�'v‡X ‚ô–>V�ìò20vtsàÁiðŠ=3’Tÿñ8¿�­ßÿþ œøoòó%SþNh’l?ó¤y‚,16þÍÂpàYÀÊ»4àzüÿê‹Âÿýk‘éròýø¤P°ÑY>‰X Tv‚¬ÓêÔË©ñ8ú ˆ‰†Ý Ä «š��*i5庈.Ñ~¯óž2£êÀ€·¦�¶?t£""ò—K�v‚mòÔb“wÆÈùps¤]Wé™y,ï¿ÿ¨¢lÈŸЮÞþì4Wæù¿òS(KÒƒ3éÀ¥h›4ÅF_ëà ê:ÕæT™|%ðޝum&ÿx´À>ï,~;ñРK6ñ¹Þ7£ k©AxÒm–éNàÎZ¥^û�Ç«¯É²-?ÚŠV³¸�Mj¼/¸ñ|æ¿æC³0�Í|ƒ¬�ž¼.²Èš‰©‰ßÉâ–¯ìv×nÓ£_ƒôðëkÊ.ö•õÊÓ%×¥M†—Lñ?±Šuæ(tçÖX®ß®¿³«lAˆŒ5¼nöÓ·Óý¨�‘wв.pÚñ•Yñ�ùU¤Ú[HCù¦*þÙmñläOYô¥Âzvþë ÿºÿ9R9„ýâ(<ÑÍçà~–90�G_(g{Õÿ]jA o­b.†ÊO»ch«-n¯fŒÏû«¤éÔŽ¬?W¾ D¼lÙ¼vÊßïP»»œ?âÜÞä›>‚”üYDü(šd²¹—npæƒÉÃ!ÿñ3,çÕÛÿ6n©wç ¿åèì'8U)¼¸òævïë‡C 8гB3Ær:B!7“¬[ùp¦·|R•´ÝœE¨sž¡LöµBé`—û¶ •Ò²´h î#‹°®÷ð~ƒô×�mY˜FEÚsHÁêgˆ “Xoó~qÖ«F æ@Í霜,ú°Ð�  r×\Æ2—³²{] ÖYaBÁázU»gj¹`ŸŸl³%ÃŽ­ŸÊK«§œ�‰é•Pä_ùz6O÷å_âqFàopâÌïßU}ðC“?ªÿ½Î,ÙÐÓ„�«¤÷‘à0ùš�3]¬™Í+‹*o-³©Ñåúq(—¿á’0¸\Ç@# ûÿ¸˜_ü�?ºkÞÒêÅ7TÒ Ëò Éj'Ê!éhF´éñî {©©T9·z‡ÊB®xŸ;Š~8NFšHîæ.h•€ªNDµÞ'ýÑq2i,{±¦Ê¢þ=b ñÛwáÕ`áÿ*ÿw¶‚=vÏ&ú?ó2 ¯Í�«:Ùåâ„*)Q\þTžé„+$ßÈhq_YÁßÙNÔøTmeëŸäˆ»Ã¬x#@ãåkÔU‰ÕR±o 6‘ÌêÞïì¶…ÛËËtÏ#ˆvW¹@6«íÍ?ëÞ¾Óyòdý73ÌŸieëß ŸŸ»õ8ùâ.|›¶#ÒEypŽ�,ÆKÒ­d¿’m*íÙ¾}·‰¼Š”°]0Ø®¶3ð%ÁWD·íÃ~1oå2”]?ÌÆÒH©¿z‘MdB¶p ¶a¥ƒÐ‹í(ÓÜDr~–5Û?²Ï—WõÛÛŸQN"Ý9òþT· Ì6Ûö˜œ§#�ûþŽPb¤ž‚Ü"-oñ¼Ó}ZÖÕ!fÙA¹¢}]K›kæÍr9C{f-ãR?Ây0ô0†‰Ä(›ýƒÆXEp±.‡0Âó ,'ÿ«û¥)�î†j3žxk¡>Ç}O2Æ׿Cƒ’j(¶²î|io»Œü1�ð=’­j¿úrÛÚW}Ÿ�[ È€3ž’鮥‰>ÿƹsŸ_ò{Æ?mÊth@z‡ðIþ�ìdZË÷‘_¦à͇ÑZÃk¸Ð