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']
RIFF0 WEBPVP8 $ �3�*‚‚>1ŠC¢!¡ 5l ²·n¯à`žÅøŸÍ•Þæ=7ýF~CòKúº_P#ÿß?»@y€ýGÿoýß°ï ôOê]k^€´~—ë¿Ìü~ÂþÒüÿþu÷Ý¢KýW´꿎þwøOð‡­ÿ¸œŸ"GñŸ©¿\üŒü¾öð·ÑÏâOÀáŸÆ?±~G~ãÿÀã Žÿ,þéùYþ?�O` åßοÀþiü)þ�ü‹Œûÿ#þ±þ›ÙGøÿø¿ã¿r¿Þ{GüŸû§û¿ðÈ?žÿžþÝûÏþcÿ§ÔϰÝ/c¿×B(w3A°¸E³ã¯3@¦ØvUíój <Ë„ŽñâY­¦(iÞCåÒ˜níí9ûãô„ à¦4˜Œê3•˨E çúíF¿Ë“¥S Cùätp~Qño¥<Û+HðZFÐkˆˆwLq€›Í`}&Ç1i±¬£oBþf¦V½²” a‚Û(ÿyPg‹…ÿâÐ^Ï’Ñ•úg¢o÷:3}¯Mô™Oàös‰U]C“aŒÖ7(ÓÅz€þþ´ ßré9ôçcØ[  =j´€ø <ªÊã² DÓÿœÓå©) ò;÷X€0¿ÿŽŠ�õ¬YÊ›W_o¦Ü9ÞEPØQR«³†|Í jØÁšn&UB¹±Ú;�š�"쌡ꌿúe{æçÔ[–[Õ@5Û6�N¹ØÏ÷y™�›ëyÌ—-¶Á-h"ÀíIâDe3Á_½ª ûÝ“âƒ&Ïé&¯â‘W4?ë¯Tàʾ¦>Ô×\w2ƒóî†*ÃCs‹Ò·aghã_}ç÷C–RµKŽÐ’·zÆÂØèÍÓpNs£ùÊ›MÉñ»”7xl™(�á»�ƒåUäE:gOˆÞ£BØ™åäÿÍl¥vhË×zŰ"k@ôžÂ¬Wn�{ývGh¡±çoo 6�šeísšÛoÿã†tØ<ùÊ7ŒŠöîj<.³T±ð“{È FÌ_ìÈúßš6uÍfeôBW8IP¥#µK›vbr½âÿ<Ï,"”‰2Yø«‡áäu›[ìØ]·$4”éä°qÄÝËþ8#Zê&�Öš—ó×"®SÔ»5J‡ãOʶý9-sÜÝ*jݺßñ <Žœ�gÉqS Zg~=µ=]K=£ºd͵ñm kš¢¡Õ[³Ç“±òFèŠíéã•§Dxß„¿·�FW!ò~3F/*í¬ím¸.ZˆdS8ŒÇ7£�þwÏë?)}S3²­8øèÒKZxá, ÆÃ''ÿñhÇQŠÀ†ºœG[βAcç_½A‹n€_¸­ ê­x¨æä7ÛfãÄ7Ç7²×?üIVîÌ›tîbQÃm j‰|“êæL_MvÒ ªíñf/ïˆ]HìS‚š`h,6ú òå7ბ>"\qݶ¨9¥ü;€ԓœÆUÒ/�52ÿ¾ÛOPÁdÔb´ÂX¶Ôì+ªŽ9œ€?® ZÞoJtööû<·ô÷±4Å@Æ_Û8Òýï1ª"!âßFBwàí•'úÈÜK!u¿Éq5T2ç«Kª·yÌ¥^ØOÍèsxÕçùM»6½ñó¥Ä#óÕ5éܰý?1�½sÏÑz ?“PÒ¨G) $»ß¿õ8B Þ°4 ÁMJ.ÅiøYV@)¾$=Äp(\.E–W6uÐûw>Ëí¿�Ô£Â-4�z¸L2oÊk�…Ò/ �—þ§ÿè á½Ý7NÅ~í=ÿÐÌÖôÎÝ×j�‡k"S7é�ÆZüö͆³Lª/â›é w ñ:ÁG �aAÀ^Uœptä›ÿB÷Ý-‘yvÓQºÉ£}uQ#béïÃT‡Pzßs²û-:¥Ú­ö;»îØ:͘2HóïcŽð’ãj (h°‹ñåì’LQ÷ eî*æï¿ÿóëÆXFÑ€Ôü±‚¤cý§’#jÈj·ûjRë;%vl/Ø{î†è±q~8ið•ý6—ÀÖ¶xä:qù̯û/þyËSưsÁá°?ÐS&ü =ø<%Ôö�Q¼'²ž|<¨ÛÑí /}j±”¨ßôºW_æ}¼»w“½%ÍÞÊ‚`G¼µÈV.rч}¹e÷z*-ZB#GIf²ØËŸœˆ¹ƒ#·niˆX™�×-~²…åUvù6W³Ãpé.ö(#M(¥]ÖðäP˜q&–ã+jÖdöûǹˆ@ÞPêð–?¥£ýãœíXtö·�%k}±F›’í’]þ¿†üWtösÁ×3{ Õ¥c(Ã-�›ÑìæìÉÝ÷çà´æl~Öéï˜ÎŽq�iÕ÷¸w� >ðÿ�d²<—ßâI@æ˜ÓiÍX=AvCî “i'»3ùšüÆÿ«{:Ÿùú]o hÓ&Þô•`aïÜÍê}{èæÀp„`Œ-¼¥z�­±’¤w/ .ø|ô>ØÅ |ôÙl„^ó]{ßS‰#Ê«ÅeçìF/j³3öP‹\Ñ•s)´û¢{c´!ÁîjW–lƒ¤µhD 0u_>æx/’èíÉÛi 0þ‘ =ã¾– IS�h` ÚÜföms䣫-Ãùràt$K¾=bšÑ¨ £ª-H(èÉüyQê’ÁŸü�«;Ã�:°ý_HNp·ÉUç/yÜ&d°EŸ�XÕY›„; Dc"��sÖiùÆßÂïÊF\D Ö>~ ©öv×Gèt¹¿@n~"¯¤tÕ-(¬�ÒnŸfÆ%z=2÷i‹X„Ľö6Ö�»¼húÆ×¨m*Ãb¾²Œ¸ªônhçú]Ö¸• ¬ŠAöÿã”ÇThìS’dõOç-a¤•~ŒÇÙf‰¡„±ÊÚóªc·æO)˧Ó=qŸR¤B)´� ª ·êÛÅRI 0BéÎ�‹âÜÐÙ[ýör…´‚þ}k³»…c?vÛÅó¥=¹øÇႜ2?VNg/²�E6 6D|D`<)74þåEB+%4„W•†Ñ[ž"›zK g¸ %Ï;Îx mýáCîßë^Dª„*\­zq§–¯6-iF·Ð6$ý‚þÙ�ôB® Ÿ·DÍ-ŽŠDoéA¯7fà,†#ŠtÇÕø�îI5¤ä9tÁyêüþºŸ¶V…nçlÃ8‹ð½ˆr®ÿÚ8q–óRµ“à†òœhëV�¼d²ª]ÀU!,- p�0fô]‰½Ò!²ÜðŽWø�K`™ÿq¯É˜AÎ ýo=·,ðp²f§# Ž