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� †üÿâÈùògÂ0ü ËBΖBXÎÝÝÝÝÝïêîîîîîî]ê ÇÂr†UBjËBXBøó}1¿LR{ÛFÄàÿÿ§{5z¨údz�;P5O=U.�«BEÇŽ"®óâu�_¸ÍØEžpCͬ’›�KÛ_óþ9ZòäNóÚ~'óN¨©ÝäFàþû·P;�ææª¿O4Ù–IXÊóÕñë7Q@Ÿÿ]±Ôuü�ñ�èG¾� À=7[,w¾%Dµ#—{"�Ë}¢$û–|~a¸ÖO Åb…¼ÀÔ_)šW¼€{‹¡X) je…d.Šô7”Í5Ðòùš $Û)ÿjê¿‹}FN—â¿òh$”›gèK��¿³®yM¸ªÆ°_8èÛE’ù–ÌqÖ¯Ý"žeh¡tÛ5×ì´Î6|K [ɳVÝF²üÊÆåW6‚“%yâ±ëÞé&¹NÒ|±ñ™í’úˆdñ©ÍÎ;$;ߺêŽC$¹Qé’å§Ö/¿íDˆ1ð~ç­�Èav•ø�¬,´IJÂÐ ™O)D–ÖȬ¶¾ yŸ o’]dgZa>Éî‰6½Žä¡h‹�¬�\hHeëý à6š•�ɶ[¡–“|B!˜®’\ öK䯙t‘ô5‚±Ã�éÝä… ê²:A÷#²ÜW:Ó�W@\Xmd`™‡¨kȉ}ÉÁ{wî!™àlÃÊÐÑò*ˆ-ùÀÒ*« �hŽìh°Ñ�«…Ècdg_ijw#Îgä`À9Áœî ’q©Ux€dLؘX¥ÙÝP÷\Àë ¿p¤‰†Ü+¸/‘?´6 » QXLs>ÂßBr´ÔS¸�d<Ìè2yCcóí“G=i·!— ‘‡ÈÒ@ir½Su"¿óx\}Á®LóI¾` ãkMIÈ-ô< Ï‘µÕ‚þ‚,e{·!o‘VÖ„XˆK¸˜µ©ý»øŒ%«;À\dSÔ$_i”÷ÃM6dy© +ö˜!¿r¥D™¬ít«ï É™uvñ™í¬ mD]aHóÞ¹û+°9h«’Æ¿j÷M96€çH–?ºï©Ã$¹®#Yyçìý�ýNid‰?ÌTB¤�¥¿r�ÕN’ÆPlöÖHC1T2ÏúÕ«T=ï3’4†âFÀ~�¬}w› KIšKÑxìʹ yqPrάPì,–×Cê�:•3oØ@ëM‡Ðò’!O¹û²’jÔÚöSÅBþŠžYßß�+|ß÷„͇ülüÚñbñøs½ŸñýÇœ¹Y?;U€½õ‹SÅÂá§2 ?ðý»l‘íÙ~-ä/ø�ï/{ãGG³NÛ}ÿ4×é�NyPZk­5D[k­°ét‚«µ KkmI€Ó;�Š)ˆZk¢ÛšIy°´Öv°ã ˆ–Öv“þ÷ÿbVP8 ðð�*‚‚>1ŠC¢!¡;¤è ²·rTHNâ Ýv¼ò@qtOœ½ÉŸé~ã=øUö'ö»îúgæKê3õƒü°Ö/õ_×=ç?¹z€ôþ‡ÿÕ§ú°Gî°ëÏ¥'í7À—í×î×À·ìOÿþ°œÌïö½¿ÝǦåÓ3333333332Ô:Q¶¶TªÇKürv�É:¾P)IZh•ˆ¸R)†/„m‹3ØRË�QšH=ìõwuFÎÕ´�#)�´è""""""""""" þîz@MÞmºÆ÷X¦Ö÷Ôßån 1 dçœ(j Êpæm^AOË#œœ×s«yòÉÅa~uŽÖ¼y¶Ì·èÕ«¥é¥O Ì#éòæè¸¿ÿà¥Ñú#opÊáê&;Ÿºç×’Bl~ÎhĨÊã:ÅŒ„oiâ‹©{e¢Ûe h®àuå× °v¥sÔsÿCªãF Zšau$´ê5\¼ë!þEÑÌEPDç�¢vùâs‘‚]q·>ÅïLJ¨%tôt¯ùy»½´hR¾å‘Ñð‘hôíÖá¯ë,þ<æ8PM/BІ>IL2¯ÎôÖÞâÏ¡ØëZˆB ÏâD!Î/Ï{èS3é.ÊúopFV ¼8ýâúÑ>ŽCˆÄÆ�§(â Êü ½aŽ,N½ûxÿÚ+ÝÂUê>t:î“G§Ä�UJQ�Á]yŸßŠš7ª`†¾lª¼ MS×$ê  í4ßß~%Ÿ~ G¾+¦²"ÓIb˜»=uÑÄ9N–èÑ[ÎÌëÏÂüð¢$—=¦E~xò‹óÛã¿Ädåk®â"îdOZñ)¿ãûz9ëfëb̧² áQ¹6Qž…yh`Q–8Ù™‰lî]Þ.v;0mĺÈêµê èÒîy�Ê‚%Qîáp_“à×ZJõôà?ÿx˜íö¢Uó�ŽÃ51\€