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 ��ALPH6 †üÿ£Fú2 ƒ ""2l !l»¾}Ý&ƒÛ{ï-l¯^¿ÛÞÜdKïåÚöÂö•$„ âµ!H¹"ADDDäÿbÆqœÿÿÚ«‹ˆ Àÿpµ:Ôö¿,ÇÀ£Á;¨›ƒ�^î¿ahðY�è,Únzœ)âä'Ry)´Ôþ×1õAš›oÝ(ü5Ø�wã3×ëþ F¼(‘ª6ú8æ�j'Õþ­žcœ!Õÿm5ÛFEˆÿXɲþíÄœ¿ e—ý,1kS/‰'6…ÛJ¦!{˜c›ß ˆ¹ãÙb›ÿ"KÌÿÌÆ9T 4¦²C8ÚI(½Î±Âr˜Ûu¯ŸÅŠø¨FñQ?¨U˜Y\­Ñ'þ­Îæ°ê†ÌX“ù¡é# G"$jpó²Q¤�ÓÓ­³Yc}q,°<³šžL€3×Z­�ª•ù´wŸQ¹éÐc9›Àr±½%ìZ|«b1ÆÙRYÒSÙg$Ù¢5 î§˜*[« £r¸R7´d[Êþ7§ÉX}r×+q6P¾E3ÉVÐíM›Ø¡J”Ý.4¿ø½¨ËOrºõÙ»|F >ïßÖ,¨VT»NI{õ¸Ú”w ðdB†q³‹7ECÞï< o¼BÉ«†@œå‹ÒÎç«öZƒl³ãa Ac̾½SR­,¬­ž°/{¾�–kkîÛ0Ç‹Û QÖ%¾{:Û<MO¬|vœS9[™ª5¸›aç•€,ËòÕ–â÷50¤ÛõÌŸ‹1þÎ|�ð3õ‹\¾áC%þT*ô‡¦/úË\¯ÐO>qëÄ;©!…Th¥ š�©•eR{ [°3�v$ÏÔ𦴟íoƒöÍÎ2Á”·3ÕäЂܞÎDIG·ŠU¬½6ûýë%ÊJ’MË"ÙUà¥z¿­$€(iÛ¡Ó) ZÉ¢›äDyi¢ßïŸ*áÿàVP8 $!�*‚‚>1‰C¢!!‰ Ô ±äàÌóûã7€¤Óæ_Œ_�Ÿ2'å?v?!~éñ—ö¹Ð�¿Õ{€~�mûƒø€þgíÌô/鿲þïÅ?À{)ýOöþ·ýþ÷²Gö?`å꽄¿^}O¿µÿçÿ)ðûûeðýúÿþ/Ïÿÿÿ@€¿ümlXÉf‚YáÛ¬ kpÿN§ î97€o"]¾ÉXÿ�ÎàÀ¿ŠM-$2GDÚ]µ{ÎÎÍþ爂utàùgzz]Ãg¼Ïh€]V)ú_øPí6W�$¥É øÞc”õÚÇÖü–_äVŸò¶ÚR›¾.‹ï-`ækÀiEìþþîª ?Ë•lí]Ï’‡ ,ÿ$1øòÇGï?)³Náô-6h�þÿè&Ù&,÷ÝjÏ«ÿé�Ž¢+Ymf‚� (-1§¡QõéA…ýò«5™Í-åÃŽþ5*Ô È5ˆ“sß÷–; û«¢Â¯Ÿ¯ ë}ì¨ìÎ2)Ð4AêK× Ý[OMA§ŸŠ�\_h™#žÏÇÑg÷"2»+é´è‹ê Žw&ÅÙ¿Hó«Ø€'q#¿:y¾ iè^jÅ3È2¢¡tW¼’êpÙL`‰€&8Ÿû®ê³ ŠmM÷)ñéYÝ<½ç=ˆ·¢³o š0 $™“áXð6h·á¼—é¨Þžµwb¨ÃÅøëç‡1‹K"ÇPq`ÀЏÎ#Zi3õÿ/Ÿ¿Á‹¢Àþ€‘ÔËÍî�ój€z¶Ã¶ Ì6õÐeL.`Ú³Š,F� ,Å‘=ôh÷’{�eìJ�¥§L)™@I›dZæ¦`�‡óøÕ3núÕ¨ï­(ˆ1¸Øá*&J‹âÜÅf(�¸(¾ùm^­g’µëÛ3 ì²1$†õVø³ÙöiÀë>Ç]i.&ÁIG1âú‘æ:¨³§§ÿ¼;rmX-•Ô#ÿ;m§ß1w-V¢Z!™¿ú‹Ø6´iI X_—s@uøíßÿæ‹6 ´¬¦÷äqǰ™�))Ž��W0ô|œ:¾Ï-ÅsKßÿÿÉ7ÿäÿÿ…(f7û.9p[aUÝ [¡_3ù®GbbVÙqÖ—ÿ¾ÿÿTŽIÔr]€'¨Õ5 &Qu lÌ…!i9Χ–Š=ðý4W—ˆ ÐNJ©�x˾î4ÝMðÅ6ÔG3<&PèDR°c„hÞ™sÈEiü=¹vø½²8rBòÙͼ(fP#ýgO5¤ŸA¿7±7Wæ:›úxʸŵºôð=‘)hïóïê`$Ï~¨<Zá¡"X‰ãPè¶%$!FèRv£ãTÞø>„)'»;+zÆö«4 ]¢ËŸÿ@ÿêØi°IÔr2aí¤6u3gËPpX™õíý¯ …øMÖÇÝ—KÝ@'òÔöIŠ ­¢DÃ\!OM�eRY”BFdñ¡Û Ü»ù¿Ñýÿþo-Cæp¢l]gG¤}¸pç¼&n@HïE±K#Ïnc»;øÃ VÑe¯á„Víù Ô¬™“8§ÕÞû`v]cÂ|”µÕ*¬ÞÝ�ØÇÞÁàù5Õ«ÕÃw‰8ÖÖ†ö\ŽNB¹œd‰�švíÏ>=}ÿÓ‹ ÇÐîžB“'BÔ·äÿñÁOÑ-Ðb!†|/-=a¯Ø*N*JêÝŽl8»ú]Êëô4?@Mµÿ,„›]a®QúÚ¡]P¤Â:¼·lNwºƒ&]ØD’šÉ;8¢¿y‚Zµ™Ìò?bIWÆI€eÝRë³ïãÎBgVÔe)âœÞE« >W¶ßÀÝ)` §)ɵ€)nUäåøk¨˜¯ÁÝ1½ÓêUtòpÔKY?ƒ^ýÊ%Aû*/õÞMÔ¾�„Ç-.…ºæËÜ¢g À