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ÛáL»3™4M3y�µm{÷—m›Ÿm۶͵mÛ¶�IÓ4“f2¹?7žþÝDÄÀÝF�ž:µw‹/Œ&ôž·@q¥¸‚eõ@õšìè\VP8 ú'�*‚‚>1ˆB¢!!¹ l ³ %b¥È p€ Ìô ?.ˆŒ¯ ~@w²nn¡øÇüóþ?ü~²�›îwî/ø¾ÉC[êç³ß‡þ³ûQýç/ë³o0ѯò›¦<À~­Úÿ}ïþËÔ‡ ñ¿è³§€¿Ë?ÆúJÏÿ=ðCû;ÿ“þÀGò_ê¿÷¿?û€==GøÝôÌ–Ùé{Û>A9Îsœâêݶ¡W:¤ Ön?ë ’k€l{|sã´{^7Ï­^4Yµxu,· Æ–:4c΂^óßr�÷‚ï×ÿ4 É«<¬¾µO«Ä[w³H=w%D ’ø îá!èÒd¯œâ~ÖŸ s¹¬W«°!4Ë8¨WN:”é�7 s¬W9Îsœç6€þñÆ€Ó 5烹@·Ð#Q‰§¸ÛB8%kmãSw´A%xJë—Sþ?†Ðx¼`žÒ[ÕÒ18kxôG>ÕS jˆz¾°=ånħKjÑ�ÿ/ú6^LUzÕó—x;Wá”b‘ bïªMû4Öš�$þŸ.-Nùo$_Y]‘îçâÂã õ§?|,øw5ùH¼ÑÃXÕEó£ØÂÏØ¹õíÝãô‡âÿ™jH¿PÍ ±JÉ–O`›´8¯¬j‘&nt÷�‘¤˜N/Ï“3·*F<·hoìðQ où® ›5>æ¸*lÔ�¾y§øÇÕ<:…Æ8BÃoE<›ø.DgƒrŸ‹�Æ!(ÿ€Ȩoí©_á5ALÍ||Jí ^ AÀ¡_JYquv,ào…w�1¬e.W/yj‚ ÕE×fNI&È2"Ò,]“2ÚDÁNÏÍ/$þ~¦ EÊöõ¤,b~kjB:{æµÁ)øš¸æàçЩvõþ ØÂ@´°�x'~ž”VBn9œ†õ÷œ#Õ¿Ùé¿í\åǯ;ò98V/pµàò&Ô²Qª~øß“�;MÉ-©NóíF狲b‘d ¶ãô•a8~E£§9<Ö.58€•ú‰›c{¬ObAàËj‰„¦òΔqý;ë3Þ=O›ObLÿo°K£6;æ!9¦ý<�œgÏ(ZwºÕž¤¥k› ê€ bˆçYÁÕRœØŒ¼¥ÔX3EÅ ,âwëŸðMÒg O±ƒÿªÂŽÝ2ßöŸÏrTïÑ"~èI¾W¦b%Þ�¡ÞO£”D¯®£ê¼tb“Ç�$Ç \%Ž)Uöö69ÅÑÒt/öEXƒp�Íj‹#Wa¦i±`”ÿãyd_’zÍåñ5`~0%�þ¸ŠRªäæG¯äAóxƒîÉà�=ØjÖÃkÃùù ×3QQÉß"¹NÚñy&¥49PÁóõØñ»ßÎÅP>°Ò´YÒHŽm“ÂÚ6¯âÊ ”/�¢­€˜©£1ú^ø€"gýuÕËfÓ$¸áEà…ýBŒ¿&ðŒ¨”4ãËZ´zÈî¶‚N$M@Q@olÿg´bºé¢<Ž¥¦HF6ò,!ЙCíª¸};Ñ®´¹½�ýË%™mŽ#3](•˜ëï€Ó2ÇÌ•û{´9*úJŸÂA€Äý2 ñpó»®JZ¼9h¤zèø…—õžcWÜñ¾šý/�M†Ä©ÈcÓ”ÐS耣ýÎÓè_ź”�JE¹û‰)iK­eíŒmM<“–´.jŒX†D9v¦N ’-rËS#]Í1zîÃÌÍ#â‡]„¾Š:ö”èÌzÈ-—ê´-Ró€›ðʪÁšÄ•‹“R·å&#*akÞlv'r¤ø3°LwúŒd-ªžV±În©Q>CJÊÁÊH�±ôÝhgÈÞ8¦jžØ‘{;5…}GÄYÝ s*çÎw:õkbêž2> ~S=öW$ ØL