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, WEBPVP8 °4�*‚‚>1‰B¢!!Œ4 ±j@J|ÛñGÙ¶¾ü›î/ïù­Œ`~)ùgø?̯ó= >ܽÀ?€þÁù“ý‡¸˜æÑ?Ùÿƒ÷§ô9ø�îüÛû¯XŸ ìW«'ú_ÙÏ‚oÚOü_æ~?™ÿtÿ¡ùÿÜÂYý‹³Ïì~v׽О$~¸þ—û/¼?þYþòÏòƒ�<óö‡éì<uSÈ€€™¿â{03ÿküøïJœ�ÿ½þ;à+ù�õŸú>³>Ä?e½‘?Uÿ ^v…® ’÷ÓpZýDÔ%ÄJý˜JÎúßð¦ïM܆-4GšËÃ^¼u>öIý[f˜Ãþé)Û§ÂÎë?+8Í,¿¨~n(g~F®¯H��Œ§áÌHœ•§SŸÎ2|öÕ½Ó"«+¤=üçVQ1z>ª™³,Dq k’ö’/FÈìaaç‚SÕ¹^#Ʀò¢æí�À†Ë¬«ãÒ)ðoÝ’QëQ�ŠÖ~f¿‘’4@ê�¡¤-7å÷ç@hPF<_2Qî¸ä^kÍ&,Л€þôlöEŸÿí¸¿¶âþÛˆ‘ d9Ÿ×ê§’}YÜø£üɃ3ÊYñäýšíÿþZ¦0^U0°NÊ…œ*MÝuÕXA×r%Š™>z?l$)MÕÏóà“óÇþöÀ'ÇÀïh*Á™¢(ìÓé‘"‡µ€‡cõc;��Îï ¥O^m¶ep <º 6×ìùÊruÃ2ã¾M#ì6œ¾?åJèœ&ò¯¦©˜LÚÕ­lÎn4Ž¿ø<�n7+ðÉÇ逼åœçtUoV�5zÿþ05*Už]ô ]élÓ9Ù©Fÿä¬uÓÿš/µÿÆ¥KDžãÍ›Úç�زßïÑÒ;D Ï8Õ4)hºæ• ?‘UB«6%aÚ²D´òÄEõWœÛ±ÖM!�’>á5ÑU†{bï)´ zzE+U?‹P@qÌCšj¶‹”«²¥I¡‚±ò%=ôFÒú*&õ¡‚ Ÿ›ðÕO0×&Ðd2´ ü¥"i“ÈÑZ=K*ê¡=Å|€ EâÝÖR†ìîP¹¤8¼�Xªap 4‰‰á4c®ŽÏ‚DiÀ¿‰¿ÔPézPK]^°Á$ _È1Xĺu ¿@"Ø3öúT¡Ïðxv–…ÝvpœpMHàV×eÈOYåúÁ­‘¶™]ýèmêZ±8Xö]vÛUyðc l-Èòƒ™i5úl^a`Ô†7¯µyXüš7öx‚7Àð;æGa„˜«&¿î“rôˤ.­|Žëõá]æ‡-è+1�_!Ôw¯G6ƒ`¯²ôÉþ¨š‘9ï©#k‡ø;Ñ··¹£µ¦(s”x)\ÿ( HZ€q¾ãRÀ³Û‰4¤8ßï¥éƒ¡…wîý�Ú�ÜÅÍ5ÇQ¥šž�Í÷\>ø‘ËkÿSÃý@êÝŠÓB׋ÏN,ƒM÷ˆ|»²H–”×®q Ë~Ûxée¦ »“ýWtLšmɸã�™�5ß²ÇÂbB'IKcV£ØQ°Çòkò=ìÆÅú(=y…#ÙàMÂs®Í»ÄEÙ™ì¿üÕ•¸ØŽÄÿ¹¬nð=®;Íë�D·;í–2=óêú@�Z,ü…hog¼†¡åò&y0Dèl“§Ì9†ÑyÎ׫~iow"£tôÒ>ßÿ¼°¨yl7ÝOÿ‹&= ã'u¬N@£ŒŠcrŒUˆ6�êёɂ¸ ³³{E`¶¸a«óíˆáGëë³õšä™ÿÀü¥<ïèë'¥ �ÿK<ÿ4¦ Æþo¾¤¥.dÞH1îÿø€ãXëýI½¥KÞˆ(Ø­+>íÃ=€®qƒ¹±–&̰Çûéa;œÜ¿,O½Ô$yhˆT3†«É²šmV‹÷¦±]K'uJᤠùñ·»YåA‚gù5§ëg‘ü1ÕdBýê×wãNÿi9÷êGÙ­�hTîïíù†É7ÍgÕH„"óâ@#ºÐW–Ýøƒ~�êë¼BN4S›èóqXôâæ»¯õÌDå’~nÑ]ÅÄÍ<•�|W "é ¨×,§žðä>œvÔJ“·-¬a=së8â#ÊŽT½bä­Ô¢zâ&ðDæ¾»’%ýGV%X·›Ê™t9/Aý ·nÒ I7—(§æ»ÕëÎÄ)èE+?…ædòŸ¤§£è™;ê³§ªw’ cåx# Yï/‰Ðo ô0£¸8±Îj_Íê(—��·µõRâ¹LÅçÝ�ZY ;‡j>cY‰JgO‡TNÖŽ",ï‚ÕrôÓ�x–:B”CÄɵ©è³{ãì¶Å• !U »‡4+í<¥&ÙÐs¡†+*qÑ 6X@ôŸ¦ª’q>ô$Î/Ðx6Ûr¨EŠ>D–PCˆ«* êw7}ƒØìû©ˆ®]6;4Äb%#~¹ö‘%ÿ°‚V#2rÀñSFÔ ä`1,íÇçüL÷\öM숞™uo5Žuè™åbƆü7á{@�€xúi¢åú»Ùÿàšáìú ió{ßÐuÅPF–¸N)Š ôò2KMí/9ËuekIµA2ÍS.n€Ä&]ÙÆx]T°µ#¹ >xzc´š=�øà� ÎDŒ ¬%ôÜ)øþBjÝÍj¦! #�­º•Ý•h-ÿæ<—8£ø^lå{GÜG ÿµwË-€…ðl›#ŠŽ¡€Ò¾GWYZªñ›ZŽó ·Ñ¼ó€¶`ЇªçgÈ{V¥=Ãúàܸ ±w™£#oiÍ:ÿ2Ý`Ü_:f¦Àÿ<´o¨:·|æ\tÐÒá6Àw5�+åþ/Ñ}F|œ0¬;C›· }ãŒoo¼íÈgŸcõä)a§õBÓ��,›Ù5ØŸhÚtØ!^&iéξ®ŠœÏsÅëA£¹´Wró.0o»Þ5«$$GºÁ÷áŒå!;Î"(u¾0,’øw‘Þî§÷MGÀ¾õ~‚ú°X/›üz:¤ƒ5¼ï…ɳ­†¹º5,¿ É�QÝjû Â0Ž-À=§”@r•$;bn‘;×~[=’ 6Q „ys¡�p­|ƒ°ý¡‘Îÿ!?-•�z[]·0ÐQj PMk±ÏÏÈf¥0¶Y#ò\kÀ‘¦ý¬hQi<ªyà`G3 ×¥_Q]©�ÓÛ¿ýÀ {=@ö_èZMõ>AŠÝ‡‚)‰„¼»/�¡ˆò‹ª¥€û‹Ï0ÃwŠ�¢`³à§Çñ†°$N‰¥GÖ ÄЗÚ56ÌýGì¿N•¦ÿ— Ëý¶ôj¸LÃþß6DÀ@L›iù鵜¦¶ ¡[ç‡P8…°ö¾„ø®öÀö¡Nq¨NŠ‹ þÈßéœgÏšw<ýMS&0K„²´ÿø)RÆ™$X þ#ÙW|K‹}jW9wQÝ"¯hgòrúŽ f8Å