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ƒ�äl{"GÖ/˲¬RCÉá’Õ aff:gÅY3Ü—QNõ ¢¬†i‰+fæ™PÑÀ?š]GÄ�ÍìÖÉ…•¿þÒlÜ¢�©wÇH~¹0Ä]Q©ǘިv¡þÉ1²Ÿ&U¾9F÷Û˜yÿáOÕ¶`ïå+ÜÄ>át<66�‘>0~«†5>`uÜÏÌXå7´FœÞzŒö$7íxÍ ŠÞ¼fBÓþKû/í»V¼¦­*¿¡5æ±PïÐêµÒ/aõJ™��KXH .cÏpú1˜­YèÆN)C 0¡žÜÐ!FÊ•�›2Pz Ÿ½‘l�3æÉ�•bs»3¦tf„®ùÏ0ù°_œdjÔÕ2U,¿rí›/ßüòáÖnk~"�ía@¬�i™*’_˜_ÚØÞù÷o-/Ì/Œ2= ˆ]`šžˆå"™ Rc@ì噫¡‚¡PÀÈô Ä)]f¢(u�`ˆ‹”s�#gˆÛ€&ùÿVP8 * �7�*‚‚>1‰C¢!!l®   -ÆW½þ;rÏõLÄ÷'É?˜Óš“ÿZš£ŽMÛoÂÙôW^Ñ%èáh"y¦Þ¾w¥ŠØ ë]ÿj]+êÆ�p]Ÿ“KæŠædzSd³tæä¦úí,´£´–€D œf �bÐ,øú¬0¿ëRƒýºùÇx›0m,¶A�ðjâÓîoP¦Öa±?œ]n~ÒØ"V$úGôõVí[ïµP²¯Iû&¨€øº“„ªG4Au=ya‹ • ,®ï7J¥¼ ü†¯/Ç�^~ÕHàü�¢ÀÔW¹â¿é¡w:Õl𷤡šÌsþ$«¼]ôΧ|z›ú¦ŠìJldü�Šî—Wa™¡‚�É’€ ¡ÜûÀ Ë›èÓ—Í–gŽLùw·âÌgª�oÒ‚»8Ö´0ßïÌheÜtâï£]êNæNº¿ý'’dèØl»~®Z»üp¤ÿ«!5c˜: v‚ôÇ…Ô`£gyµ%•e¶€þÆå  ÌžeˆÌ~¸=|µ�ž.äZUþ fö&dƒ-ö�nù©ìo„‘>[O ÕQŽ´nslÊ"ã84/}.Î�§ÀP›h.ÿNKnïàûSÐþë ñóPGsm”(+ckøô¿öLQ‚i£)(1ŸÎeš�£ÆÛè‹)Ò!ü³,$qÿ æï€Ä”[FEéÓìç (Îw¦ØôÆ�“eô½ó,DJ“\±Ãèe´Ú ÿ|ÜŠŒØÌõ�tf>¡ÒáЃµÓ'ØÂ˜U„XϪRÿÃ7Å•ðö�¨­½DdX¾Žd¯F`¿þÿï½Öyq©¨ñë"¤�lN–]¦‹”˜ÑÅ®RFM€)Açòž=£—7gGLhaK(0]=‹Ì&Fm#Ĺ3ÕƒSç9ò.y±,õR{;]-SM±@JZ•«»å {‰á.ϱXŠw…J¯Å€5jT¦8åðö|½?5™Úk4ßû‘›’´ß€“¨Ö2c´v+Ç|FCçÏÀYÜ‚àˆ|` ‹雃§Öf)‘{.; µ(N”õçù]ª’þé&Ià ;�šØ·b†äB„g·ÙÏÕ‘×-âîÓä~ܵ…£ØÏ ¿Æ7ÈÅTGÐpÞnãcºŽý˜dgëVñD5ÿß��0CörYT—‰ÄùZ5v‹e¼ö_\¼|Z&\vÙþŽŽ~¾WÿÐl Ü=%<馒lB kŒß] [Ëù>£‘¦ë죵³hÙ40ï'ƒ¼ž_=ïŽÐ#ÐvU]þéb ÏÊTÿ ȶ~Ùk° Þ.‡îŸ¶×~·4O‘ÿ�Z²óû!@ºcç-�ÒÊõßžÁ%<^lcI¿W@ÌDã< y)|Æ?åN ŽEè ÊûqGçdîäpH׬Ÿ‘{i0uãªÝëh©™na¥ÐÐLJ^xÓfI÷øçþ£|«;f ØJC£‚ׯ#êr(žQ÷A´Ò K˜(Fé÷-E LÃ^kÕ<”É¯ðˆ¦Ø4{þëþ’Æ@×m l >îúûÚ¿[—d¿òï_Ãpj�?éÒ[/ã�>Î’›«×Å Ò ¼IÍcotjp+å ÎÊ5‹U¾«—xÚ§0»fŸí›Ž™¬ctNæº<Õµßzɇ,¸ZEeÆ=ãd™»Z‰ËTì01†—Q¡ DÚÇœø 9 g‹÷#-é¡uEðäjUЇÕ+¸3T‘lÚÆZQœˆƒÏ=„OwOÚ©RTt¯<Œwæ[Èoð†ï”ZýÉÑöu…Á¶†�úý‰?3ý·Ž4�¹©‡à¶s(û Uº¾èI€xT=MWvŒìú{h "ËëÞÉÙ£nÛËõד[e ­Û¥7V-Ö$ìœb‚±v+Á«¡- ²±ÌÃt*O2qB@}ï¢a‘wŒÜßÇjãpãWׯ#xÅg³Esžùš·R‹ ÓKvËÝgsõù ñ¦ï8 C7:-I£b¤Ê¿¨Eå7ÍùúÇ'>ežð”û³“Ž× 9cšõhyB¥·¼‹�%Çˬv /±¸߈žé,ÐÌËr¾íT‰ó­ÌÜâIʆÎ&ùŒmGâFƒÿhÜ¢”â=ÛUCµG Ñnj}#Ò§URî‰Ä¶ÿ&Q6Sg÷£\OàÝY–~g4�`�”ÉMBëLp%½î²ŒÌ