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/jpegoptim" 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 (39) "Command "/usr/bin/jpegoptim" 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Ö WEBPVP8 Ê ?�*‚‚>1‰C¢! LR´‚Z@�ߟý‡üÌ_dŒaöa¨¿zÿ¾õ·Ù¿o倭_î;°½?îJÿ‹Ë“ô}`îÿIêgë¯üÞã?¬ÿð¸ÿd‰h{7­sy¡fU¼Øß�Äû5*�Ç„†›¡?¸]L:#¦¶Iñ¢|¤�ÿoÄ�úOK›lR畈ÿy»vß!ŽI8=§°ûƒ8�¡…�Ãb­*(ÁÓù"±e,껉kø$€x|ˆ1žs-"Ìâ+YÞ6‚Øà‡å/ý*$A¬Íf7"•o_S¼�”*M°ÜÁ‘¤�©ÝyÒ”JeÔWºøm kÔ¨\�oEV<Ñ"Ϻ`>[~•üèd{ÔWZ}<ÌÌUïy߆[#æE}Mí,Nµe‹S_àn¼Ä®DU�„ö–94Ôy‚Uzâ²ä/Žl™ë¨Ÿ3ˆ›…Ã;M Mu‹©¥ZÑ»«™˜�[Þ ÎÊÈéªó«ß:ªæ(ñÅ2.ÎýÙ ŒÚvÎãÑnD‚÷ wt÷ö+wÿL€ûä|#c¸ mÉ ˜®ÀKM3¾vD¦þCޝðZjù6�„$Ó¼àØ.}³%¦¬iଠä LÔ…¤w¤ˆÔ?Z:œœü)cþÌJg¦«¼é¤pB»IE žÏ¿róxZëhÚÒïÞ‹û|È~r‚NB0¨Ça¬µ ß`œÒúÿ«‘ëÒv‰êûb|­ •\z¾àÜ’ÂsÛï–ê=m½S¦ÍštI‹zù‚¦Ê¼Š_ôzÜá¡ì¸3õ2\ ž·uZG{ïÑlBàøNDa𥋓vJ€T7«ø­‡-+¬ÍˆŸt.RU«4O˜/×òU+qÃ,úy“3™þäz< ¤R͵OF+¼#¯cã‘u“Á'·�>P°Ÿ?ˆ0Ð=ÏŒ"ÿxo˜]?ýg&öýca?m]\ýr<ÔÒA½ �¼Ð|QGi¼,§ „Zó‘Š0UH–V[Ù÷ÈõÜx<…Ðæ¹ÏE r1'Ýtõʃáp‰!VŽ<™04z%äPô¯º2™\i´£S‹{žvå >g÷zR|jËvoÑ`¶åt[]Ÿ b=ÛîÌÎ%Dàu1ÊÝ̺!ögêŽ]ÑÀýP ¡Œ¼èb µsЇhŠ­ÏÒ¨E§e£!�aÙðâ`4ÈQºþ0ãôË%õšv»¤¹ÚTú-s7‘ˆä)YÑX³ßèÊ ôzÖòåQÿLY/YwÁï§êH¦ŠxÐ)A�ts”.~[lÄdëp�A!S ¢ûóD‰qd¬»—º6Ÿøiéó¾¸hƒˆÅQƒ¯k[xZ¦‚ÙH…¦ö{'@¸•ÌÓe¹ˆÁÖ!öœZsšÍ,LÖO,“”aRðõ§04vOFZªzxPžíníÁÖ�ÄÃô¸<›½’J«iŸÑG±�`;x”4ÄÝ4ƒ<… ªT7ókÒž¥5íÞ–˜Cãr=‰†Èó‚Ö3_#Ü*Çć7²ã[nâkÚ>fõ2ë8´û¿ø· ?öá QÔ\p¯bJ�Û sþ×ö~r%Ô¶Æâ‰S­qO³äá­`Éó€¹n¾(‰u»>ïÁ: u³bgº›ž5fùB1HÔ>(~Äb(.-;+â³Ç´)3…{€ˆñ·®Ïk}œàÚ3ë ·hEÊ�ÿÿ‡”`׌~ìÁc.?îVJÙ½Ñâ2pËâ­Ì×—§YwBõtÍg¯>ä· %+JòˆEÑ®Ñ;áç÷ÌiP±ø�kN¬Ž<{þ“ÁùRj�f\øD u K5euŸó¹êÿ| ê)O«3­·ÞÌe±�pÞ�晸U@ý©[G¶Éeî|Ï/|“€#sÞ]é§Ô]”Ù‰a-Í, ®I¾­‰ˆêscÓL½#¡ üæµú쎚ùòÍ|çí—´‚zäõÛÖ¼0qEJR1m”×Ãx¡ŠZ"Çsÿˆ;lzÅÝ;åÜÌ”äEÅåíñ�U¼€îEmyQ}qD•.¢4”ciiŽ)»Þã%5„§KzÁ/¾˜n³«½ù‚$}œ$²Û—~øiõ¶ÝÔ·ÚtåGNIÚm�¬—£tØhc öy4{^ûR·Ì 5qbC[FëWÅêH6í×ë™Åà¶´“æ©Xg 1h›8‚ÇoÜæ„йV²Ö›AXs'ÆéÛ#U™(¯Í'èßÕ2öTäë9wðV «Æò™e‘³µOaÏîC"'b K8Í #vÓ#y™¥Ür¶tu±àæM°{Ýý59ïI#údXÜáÐ2¯.±„Á'þ�ћ׸”»àš“áQ<~©€„]ý�2�Ó¶a[¿EÈ(;—ç°‚w6ûu¥å´J ·±ž¶¨Æ·¦Šb—¹õ<ä/ Á0”"¼Í¥ÐV¯9ãÓ#O»,NpÐ ëZ‡»"ver”Ð #-Æ]½ e*BÆXÍ™qOb^]!™ #Ò ¥ÿ¾¤ME}G ‚U,©õ�ß…E�µySÇF¯áz<JV •÷„A.—�Ê�†|