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']
RIFFF WEBPVP8X ��ALPH*pÿÿˆˆ@Q$IÍ’AÀ9cñ/&§7ýŸ€ÂÙ‚ºUXýý÷€ÂÙd’LVP8 ö �:�*‚‚>1‰B¢!!‹m€ ´€ �O}"È‘÷Wûî3~De…TîïÛCë¿…T„ÕõiЛ×~Â*§…U[OËVë鿹+®x]‰æ;Éj^C (†V³�*ëòª"DSŸéeÄêàý¹—´ªìf�ØöÚrðÞæx_BU_~þÙýGhR|Æ�?•Z"¿[þ~³ãHÓîMHB:X+Z›€zSGú’èØ}‘ÔE!:~_{fÃ+ †î;4^æ{åR·[®—\d¾ÆEã?°8ÑÜÑnQÈ}ã…WdÂOÃ\ƒ�é§$ ¼‘¦ù­ —BKëž‚]5ºõ¹ží«uVNi„€þí¥½ØÉå?&À®@âªI}b<èfÖ •æ®W´ù¼ÍWì4’¾ß �M§-÷~" B( )èYiâ–êRÓÛ'“d?ËiÊíäûqQ&Âk§± 4åW›Ð ­™Ql:£,\«1A\ž(šþ-8þ¢�YžªYÔ¤�Pý²�€±ZðÚy®IHÀŠñ½˜d.ªTîPƒžÅÒ•,tCk)Ù§—îíá²N<ªRÓ*Ó±Ì rGJTMØI\ûx”tf¤[ë G¶þIß­I×Pã|,Zÿf4G7Œ(S§}‹|¶è+×|2#˜%›Bó0¤ˆÜðA“yûéÌ"Xsp 1Ût=`÷}"gša Ò:8u½¨—ؤé6ÁsÛœF½Ìáoå=3(%‘:Î|—UÁýºÓòùób}ëóY…»ÐV¸%.…äS„̳¹ÛÖIÂSènÀÍæñG€]OK>Í«Ú àU¼Ö°MEîbŸ·iÌæàá(ô:æ§L[Ú_Å9—‰ÕN{ Éç’æí}|ÚƒŸ‰øÊ|ê¼›Ô‡:ñ}Ëý>�mÏ0§Á›S¤¿nc­GUŠ N^XÈŠ®!_ê~,Þ��×�ùZç´J»‡í÷D®W—VUŸ1ûæ˜×6eWpåóÉ ƒ•éñg»¶E§ÂjŸVkÛ€ Þg¢ÈΜáhÜ3*Ö.úºÙ4·œpwW.éò~EaÊÙûhš«?Àó@`Ý͇¤]�1‚º]Á_ãñc@ÖbD1;Ò\!a_Å ò coúw'.Po\¿þÎþXú�'» >_µ­  ‘û¼~¯WÿÙ³YÃîya½iÙ ;ôé›èÔ¯[uØ·ð4/AÑ)/+çÕ˜c¾ð¨¹¦l¡Þ�洆ю.žlÞ¢yN˜°ÈK–L—>.?Ph& e‚s¶0âÔ®ˆ@P�}¢•*·l”�ÈðTò`;™øÀvÅϦ¢6^šM)V�¸2ƒÀ¾¿Óå’¢oÏ{ú¢+I«òî^Šýˆ¹‰ÐÜ”Ôà²6±ì�ÓÊíú™Öqõ~ M\‚¤%’Qć`°Ô=µ’“N(x�S‡` &4!àF{`FdK*„p¦ëíi¡„lö@²�[áêÊV'µØyïÜlùOÛÇ/™½_ÝT#ÇWw2¿-ˆòÕøÑ@lÐçk¾ˆØWÞ3Ô{g¥­Kø�|w†ôîþIèY4‰¨(’JÃWÚ‰æœThÑ#E3,àFu|¼ö'�;alŽþ¦ðL"MØ÷±Ì¦#C÷:•z/8„¥ HQoà/[IŠþ-K-N•Á�E9 ÌþìÆ-b)¢  çTÌ0b·™[æÂ¿˜Ë&ˆ|¦çµ1DÇ@7Í ë?§e(^õÙ..eÔ-)…"ùM…ÆKJíÌýB-°ýÏ•"À»ÿP_×_­dqK¯œH—~8šÜÅÊ¿ž±ØR¯ÆýQs™W‰pæU¼k›ì—G5z©Ÿò(ŒÎÝîå nSuy(?w”�À +쌓w„þÓ\M™0t¿[ô�9�úä–[ú�ÎÄèC}””Òn5-ÿ!™â=Êãß6Æ+$~¦Ü:�îÿ ²WÉ=W•:gGÈîÓÊM¦½úÍ™¢X#N¨Ë8Pû}Lgº®÷ÝTOÈf�аíÕ¤eÌ�þÓÏѧÛD_°)˜M/…›í5ÞÞßÿÂÔ ËŸ% wã�<+Êþp÷»á]÷ ³ wÐ’7�£FQEåÉ«¤âR!ŒB îy|üì$Ö "ÙF$�œê,R”Z9]J–}lлՀ¼›¨Ùö>o]ŠÊ4|qêw÷šÚÆ�©‹è7ºÅÍvøm^Aïyìh>ê÷<ª«;ZNÔF�þ˜öjqlt'ÊÞrc0†éåÊ Á_¸îÑÊTSJr‘T²ìhøŠ'ÅmF[ßâ'ïÏSéÆ>�¹³Sñ«�Vö’¯±ßÇ ªo¢CXPƒ ��§zÏK»(Éü’cË RO¯yµ7/ ˆ ¶/ð_W¯]sÆ"Ö&¹#GÃN3%t"ðÒdù¥Çe„;Ó?uãâ?wùߨúÞ?ÜDÒƒUع‹þ�ßÀ-É V:.ß]5WKb>âM‚ëì_Ÿý äíþ‹Ç'}°®„BO$87Ï|n  µHO!y�Æ"tA žóñäˆó4ÇÒ‰¡—þŒN—j[(8–Çõo=EX5Ô}'È}ÕiK6JðºæO›•n<¶Ÿ§ÿ¿ƒM^ãë ¯@ñ< Õã_^Kïþ)üýXq_*uù1ª$¦Èfôc¯—[²s …ؼ¨|¥Ã¹^þ²UMË�GõÙb5�t%w