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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 6�(�*‚‚>1ŠC"!¡+h ³„8ÇË`a¼ôúÁúì»ú�ÔÖèú×é[þ3Ü·õÛöwÙó0çªGBz}¢ÝÔ_âß]þ«ù7ȯ¼¼�ÿqüºáI¨€^‘ý/ýOåïóÎp>`=¿Ãú[þÀßéßæ}€?”^ÿmé­þïøOÈïgß2Êÿ'ð ü›úwûÏ·¿›_[ß¹ÞÈ¿µE¿ó¢{´+%’ø4ê|ëx(v…¶£\ÏtÚN¯Ô϶J½¶Éeˈl‘·?Ù®¡ 1«t’ÒúN϶¨ÿõ‘î1ªÔêïÇJS–kSÀŽïó¼DåËZ̓¢ Sl|>�ñQ{øÐ”‰ÔǹÒ´ÃÂðOèkÙÅèãÄm¾œŠ…2O$N!é-¸[#Ö ÍçÙãUI>Ë6uü[Û|%ÅJ•"Ñ þññ·ì8«ÆÛ“H‡rLÕè·5-øÂ÷Á?þ€P`ecÿo_ýò|î+õZFt7ßQð•}R‡L»éî«>Y§Ší —â×ORÄK¦ÛwɈb%8�êg»ÓhYåØÌîn°ŸgŠæå½*º .§Ò~$ðˆÃcEÄë*:Mïh–jõîèV³ÝZ3ðÍyÚ¬½¦¿sÕžì± ¹góßøÖ € �Öš^ó¯kU¬y­ÿÿEù1wjF þyzÌÁë€ùÌÝzëîcÁo€ˆ Œ’:=Úe~Ïå„ë·Õ~Hëþ7÷ÚæB¤ˉÚiw7�Ñy¥lM¸nÀ a07ò"G‡î†G�h>¸ûÉìü·J�á¸?”†'Y~·ðG­F.°ÿxQÎ$ã�ð7ÿøÅÿ‰�ÃÉŒ½×"8µ_cU¬¬;ûXx Pô‚Óþ)GNŽjÈÔˆŸž¢îš3®ôñý™¡(’¿÷ªÜé9·ë7¥×ä§ö}YèÓo‹Æñq?JœW›í',p˜y­ÇF ÿïGÐXÑ6U³»x³”jy¾å¥-XCéÿ•å7ɹM¸ø`¤@J]+÷ÿ总Û#=Wsz]jL‘’ãóh :Ë fB‹�ä;u©6«U ›· ²ÿiŽç1…îU£Œr¤62åµÜCaSøj@�ûmHÏF!W?ø¡Uß_¨à”Üx�œ¬x&n¬;-ÓŒèõ|t1vÖäv“0385Ž@ÑÂ4~ÁtÀÁRÒ/’hÃÌ7¼*—ŒI>¼ÝÜãZA[®Zr�^Ø–§“ß>¤€×Iê7Bþ ̈́˖ë+ÃJÃr4&‹Ì“¢fl¯jÍÙmœ�¢ÛJ_¸ˆ½ÏÍ<¨Cƒ:Ôz!Ì/ìtôCˆ~˜cHmãv�q=;qòöl¸vvg½^Ÿ¥ÍïóShåRÕi,Ï„`ýÜ…<â.'ÈŪDh7e¦óÜ.ze˽ ÄJèCay6-Íß.ÇNõ¢%ýC&«®½9jñ»Ž"Z�móB n ý Þ$S\¤»×�†“ošuÔK“ìb�Ïg¸^}a'‘ü?Ð��Ïç5¤ªÊã¨7�›>áôÁ`!Â_cÖd†¹u­ä½ø©loþÛÇîT1|. JÚNçÛ:RcZûê/]þ^áhU sxÝ£³ål§MÛ°g¯ wê+»··9?¿BqÎÐ�:�{æqjš�êBEZ#†Y¹ ˆ|? Až…Q>}³·Å¡¯Æ�&{>Á°™U:%Ë×RA††_ãî³Ðß9PŽòÄÓWNš“'iÍoòÙ”¼¨ ǽ¤·(o^H÷ †é‡Žg ¨wNwˆ˜WþüÓN²¨¼àxZ£¬¨âÜ>’;SxeòÒ#iÕÊE¶Ù !vyf YöËe&Áð7˜`š\³³e*û�?ºPÞ [¾úŽü÷K‚•É|AÀl@ù¾ÇÊtϰ¿&oßGÓ�^*íú‘8É7ªïq@‹Sý.x4U©1T©þèT³ê'†7ßGð§$ªÇÎ�R¶™žVb .ÐCâÀXy»—¼Á˜÷Ʊa•E3U—Ð�ÔKêùÀÎiÎ )5ÎŽb¦2pyI7»úà¯~ âÝÜp*æpùR»úsí¾B=˲žð3¬ômT/Ä?x×òkÈÈðˇ¯Ø©ÎT†Õ¾=Ÿ€L$Âû4M–:ý—± á[º£i}ÖŽ®VŽ-ŠÉ€™¢í°fÂK˜5øþ-_žŸìý‰ºdG­®±œ)z²k+,ÿ•§©›¤îqÏV«áà*É_áû§ó(ÓågBÛ1ƒI²y�ý‡÷X#ÝÊBýY™2¥ÖÙÄÚéF‡ áêÿ†8\•Ü�5éIÂ'À'þàÞŸ Œ¬• Gzƒ†*¹Rø‰¨~†óÄÃcn–P^IÉ{°ŽÎÃÉ3ŠÉn)_éP<¤��0^�áýsD (Ú€