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¥ ‡þÿâ6ûðãÇ�ã!„p%dVB!t–Y(%³PÂÜ%s/s_)„æ’¹ûæîîîîß?î’tOÙ¿{"bð¿ÿÿ™ÞЬ˜˜Íÿb¼Û;Ò_ËþkIk42.Xé„Çëõ Àîõz•$¦ž3aÍ˯ s^6•RÔ:À’© z+ ¼…°]´ƦtÀz�–UŒ8E1 ©ÐÕÛ@“²•oH€(Å’ S;E!WÇQêQI)ÿÄÿT»ér½ª[ùø*,¨sii<“ððÊþCüƒ–ý`BðÔ˜àFœë˜!Ý`J³Ü ³ÖLš©cBb€�˜N€� äm±R¦�ë„ÄÁX’ª²,ËS)†ú›Â-– Ž$J‹ð¥[^X‡îvîÑhÿ¾Á¡kºMéPO}Yí‰<["Cï$Ö™‡ß*‹Ë°MoÓs—WÔÚã_SÒ,kQ€õŸéʻվý¿]±NìÆŒvÅãñø=Šyävm¶G3°¿ÊFˆ–˜.Ñ9WÖ«D_Ùx`´îBZùË—È‚õq¨Û´5U- ¨À|k"°éSð-y«Åj1´È öé\øƒ“)'€QcŒE)¶�<^Œšü²#H[ÐŽb@˜F_HdAÝ•´ ·ˆQSÑh NùŽ‘TئMœ¶Í#8"Ô÷Ë5ÁœØ9 Ba¿"¢{B'h¸Ìj›é´A]ˆ–ý*R’ìJk002�¢;Ýt94¨U¾ç5ôù|¾ê1ª B:C^«ç&ê[� Î%cÃ÷eSYUTR=ÉØt4øPì‘æJcß rAŸÊ˾ћœ!ˆm)å6Õ Šª*ŠªH\Q‰ÙTE†%;h…¬¨6¡¨6ÁA·«êÈPP©­W’iËð·6/(1ø4œà7q™A@„lb 2g€ I—9Læ2gŒÁÄ8g\IT.0WôØ�=£3 í‚kOÖª|±A¬šgé;vE–3?êŠ÷ö Ëä&“» wºcM“‰}s&û³í~쫾§¿{^³Ñ#;U­\zcq`,ØL¬+È9ä_1Ï:ÔÝ×í^Ö*°"ž…‚Üþ±,´‰šOxfVm6=ÐÍÙIœ¨¾äŒ?¢tˆÊ—ܤfNdf:¤êõíÜa²›LÖ†Ì-›!ù¹ PrlŠSõÙr”&JS3«Ó*¹]®:øßÿÿÞVP8 Z0�*‚‚>1ŠC¢!¡™<´ ³†ãAªÃÓ¹cõK«†ó¶òo0«Þ®_ÝýEyªÿ@ë ôò·ý»ø!ýºýªø ý�ÿÿIf¤ÀÛ†3~@J‚x—›oñ¥¹±úwØ ù7õž¬µ^ËŸª£ù'pè_NAlŸWhjþ›ûÚ&ë¥ÏPþòë�ÊïJÃñÁ� •b]m³u¾îF-Q=hÛÎ&ÝV¯Éz†“ŽÅmÌ„¿r§â˜‚Ù>®(ÑiÁœ:Ó�`þþÐWŽs’G”ÿúCsëÞ¦¿€òßÿ8:lV?õ·#¢ÙÇ݆\ÁÑÕÅýXÿæytqNÍ<Ф+G÷†9ŠO+ß,³¡ ƒ+4y[ç²r¶–¾ ¨sܬjÝÏ “qI ™˜÷æü룉=0ÓßÿøâÇúà™õ;ìjá^Ó\Q9ÿæ95š "]Ì_Uôv·!“ö¦­äïÌ Z‚ôSl‹žŸŠ¿…[íÖ³x!gÿ¿Wß/„Lgûÿ@á÷w¶8¶0ŽÚ¸Ty.myÔë[ ¯“ë„OÀ;9ßٸɘeMÒ.Å=Y¢oˆ³ÞnïÛséµ{§³~¤96\¸I¡øÿÔÌõ£Ì‹|¼zÏã·íº¬£�«îú¥­ÏCI�äßáÐÜÏ-GëmÙã£ÖÄ/¨S6,¯=¦m†ƒ#¾n�Sê<¼¾¯ ߯R“ŽUÆ,ñ™kU_Áx~܉ ò‹ËcOºZ€+e‡érô¯Älù<ä">Ôãþl¯O�ZVuäÑR†a:Îù+ ˳ýmì)¼Ÿå~` ~ï[òSÛOÀ¯´å›�á{¹ƒëƒø�ӲĻÆw¿ÿ5¾é¥ÛÃ:œýl•Q\˜@õ]F˜�L³-¡,…¨]䘻ÆìüëšÒe>=”¥[nrs>=4jðù´�©…»*°%)Cé(æ]k&Zó“-¿¼´KÄ­xw‘û~•â5¾ÆvÍ-®óog4Ï8šÙDßÂ=Ä”ö7jéþ²€õæ+uÏÚ_!¦0>ÿ¨-4&.-Î3}BÓ%‡ÝO£åS2¤T¤ØX©†ñm)\ç¤àGVA t€ß•‘¼ÛÈTcƒeS÷&è.!_kŽÁ]h{À'm׸D?²È>Á†±_èûßqußÅÅ#¯�Iÿnk�úÝ꘽T{ôb_W;¦„¡Y·ÂxJ~kYºÄ<ÿ«àÞá¯B;ÍÅãz¹Ê.•¾â&1cVSÄ´/| ]þÌ eŽªŠšÝ oìb÷ûïÿ?Òäv9Û€ ɼ_Ð`û|îŽó úBÌb9¥Eʶm?¹š¦ Å-߀y'¹ n­…£÷ \|ª�@ñÔÐÑÍó uúHy•(åCçwðŽÿy'™£dF³ÉíùÝò*“™ÚÐJK­¤’�æ1È�]ïÂ4ϲìM9š„Psð