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']
RIFFHWEBPVP8X ��ALPHï€#Ù¶jåü�ÃÁ]#†¹;!áŸÃø¡»D¿]‡àî¾ñ[§ê�‡ßŠˆ ÛPöWz•ãYÜõzUãq˜ŒSŒ‡ñæ\œZ1³x7ÀJñ,>¸©Rä >ܬPÌ4>þàÓ'r¦g¬ ÷Ãx=\ž„ñ|éʳ0ÞL ]yÆ‹q$“á„i†Yã0^N"ÁÿÞ™“ž¼yãÍÌ?‚†Ëq$€†GY$™{£ŠD tèv�ßí. õ_£f+’F+’zë�ZP/’¯D™Høº [ "Tr¥À��„+Vï~«Ç+EáY9G––VP8 2ð*�*‚‚>1ŠC"!¡ù�� ±À(�“aÿài ±?ì„a;ÆyÞØ·þü…ê46qþ»îß·‡˜è¯ø-ÑŸ¬ß¶žîß꿤ûôÿþ‹¬¯Ðõ?Ò·÷kàãöÏö“ÙÚ�ÙÆŸÒWÓÁäãéŸ`Õ.®¹ÄŸ¢¦ ðú>ê®?¨½�7Šá†äëIXÍ—@… ùfHÝj,í!ÌA’^i X7 T“æ|±3ªvy)5m„©Cå«ßje ìž°Hé}VM’”R3 –¹»óë~ˆ€¡9CëåAä;tV±‘Éå!Øçí”›éf²�ÀúùIÒ6 þ^¼}ùþ_yø‡êc‡[oöÜ„ ôþ0®­žE«ô²iHUIzÿï1MÓ¿~•H£æçÎqPnyÕíŽY´Ìz¶j¦§ÈÙ‰.Pú(àn�|>� þþÐ_ó6§» çÜ�µgpjˆÈ¾ <�uÏ1¢ö¡Ì–û§7„Åä,IÄu‡ ¿$)4GÇZö®?êE8í�ÿvê��»3f›­Âm’s�üe6fÚ EíÓ”â×,Ó¡¤x�Ö6¿ÀcÞ{ýNo»½@èùỤ)ô·HuZR_Þ‡áâüÜÁ�Ö‰7âþd… Û0¹Kû×#ª¿[r—ã“¶?ˆú½ŠGÝ\ü©7ó…'Kz¹‘üeMÝš×lN1;�oP·¥ÙiLä^ƒCŸ>¡&�Iì2ÊÅOŠˆ¾õ[4:Ë€×9d˜;bÈ4l}±½PËCfò9žä¦ÂÑÿžú!yÐø©ªîÑãc;,!D|J²|`�Þߟ½5І™”Åu¬càëJªœB a½4Æd9vhw×@’’è1OuT:ñÆeà¼U OYÌÓkiˆpªu�³¬ç|º’6‡AÒÕ *¡cœöÎqx1*~=Ͳã³ÅãÞÞ×”þ:ɵáßäU|FA9.߸ä^Ïì8«U ”XL�LÉR€¥²#}þoï<:ÐKHé(6&/¦:XÍ‹^ŸÊ}µj)`Ts€÷ SSJ@bœK‰x&æ%31Jò¶ÄA{4!&P-{µÖú-5ÿ]â„ÜL±4÷oÞûî?“JÒ(!öò]ÊÇWT!,ÿŸ‰‰”k¸¢¬‹æŒŸÁ�‡æè„4i÷’½˹õ6“Ü�Žñ³‘ Á<ÄN�+KF„ã¤1ÊÝÞ®Æ_õÆ¢¹¹f¿{1û›øhùô£Vþ£x·ÈÞªàŸ,�,‘§ J[EQÌÚ•öZ²Üg`@ÄqP¯ÙM:¶ø7µl5¼^‘�¶°›Èd•ÂvðCõ P ¤ÔùÈoZÿû—Éتψwy­¶²![AýÏPʰúc_EºF9{ÝÒ_Ýx^óš�Ó�P/Àœn¶9£ÝÌnÐßxdñ�¤„ûÞ1Üqo¢™þa ž‰­^Uqìo�²œ¸#º�§cZ÷æ­|q¢ÉÈ­…ö�ÂÏÛÍŠf_>ûðÔåÐ,ìþ0ú�íN:à¾h ö� _z»Ù>ð›+Ñ«ˆ¥/|‹ËmJ4:Fn„Œdo•0+Xm:§F@�]h[áÍp÷[ù±k:Õƒ¯(}ÁÝ¿ŒžM®rŸðj­¥Ÿ}RÏšÒ!¢œ)”†¶2ãŸKœ;÷ósoàBËöÒ|YJ»pà¿÷4w±ÚY]Ç\ÁÞzœ²W›OäÿÁЯ°p¼ÙÖØrX?ç EÌtÿct�Ø�¼ Ä4„.ºÏIT¿I,“ÙOϹýPÑ_7¯xì,)ŒÉ½éñ؆’i0÷7·ö ±Ãu’2ÃP@‘“²ÙRxí{yzK?£ºÙ"XÀp#¬l°ÁÕË™´…š+î!Œ{ ™ì&?[­°äua[öGþ0yì;)rÐ:‡®§«"CÔ]T\¸¨ˆÐämàµú²žËkY%‡öDH½Ð¤ŠƒcVת•bæ‚H'¶Ãú4¥îÐ"êûf’c–ÒÕÑ>^2T[hÄåòfZÒÍì"I÷e�<¶ÓkòòVb‘.wÓŽ‘’§Iî9‚KÏg€n#”¹ñ�!@"žoé­¦l¹;ÖLkóÛÛÈ °ÿ_‚ló?™çWáù…Ïg¸Îq¡•d…ÙûCè ûWiœZ²âv|`2ÁUM�’¿ÌO‡Vå¢{/äñ6Ù ù �’+p`²jR¤íÝf<ß®Õ5^^/2Ï™äZðT=Õ«Û#ºWç6â®÷GOUýÍ2ãºè'Ë-Ÿ’9©Jk;2~Šå\r‚q¶n {úžãi‡ hì34.%|J¹®B× �8¹ù/$«�ÃÜíܧeGd‹‡²F@9¥P8¿¤·}X‘‡wIUü2gåU-*YÔ/Í$‡€—χÿ¨/k€