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 ��ALPHÛ°†lÛòFÚÅËC¡„B¥tm¤„e¤”•—0øºŒÏ¬»»Ë§ëîZʺ»kXß2.¡¼”¬ïŽ„RJ ¡„ðòpþxžt5w#bô�ÿÿ~k¢Í%§]¼eÇàaé ]%zd$°µÒÙ½í'è=óµnýÛÀ~{×âL[9öû ùýàQ)ÓuáWã`⣮6r0¹áß3òg>6C£»�œWçõ+ý›¨w´‘•pجòÃN_гö™Wô»ÔF‹pzO[}çÄ|jÖµQS…ŠÇã3ÆøŒ1cŒÇ˜À“Ìöä:|�1>cÇ#c‰Ê]ÎMѦnI™(ÚORæŽJ“¸º¯ç¶ry¥ÓE �뢡„ÞˆžpyoÜREZmévÞ‰ËÇ<T=€ÝµÎMÅ :ÉI¸Üy ¶yæ[¸Ö„wŒ”ƒùҜПä'[‡œYp„ócImá)¸k[Ÿˆ7HgÓèq†)¥¼¥Š¯|]_òX8ho¸Áé±0Hé*ü˜p�mƯm‘ÝAý®\²£Øå Ôó¿Ñ…0|P*™;ìWh”-zÏ·§¤3¡0Îwö9)´0ž‘”®Û!â~»²¾Ëá:M±Ä¶&—ÿ6é*Õnù§¶…ªðõHºƒ8³:‹iŒs¾tÐØSÒ©ŒîYg OžMLd¦0-¶ó>#2žc³Ùlv°ÕBË-šÊœl6›�(é&ƒ §òõŽ‹±{;gòóm¬“ÙÅ©5Û'™!ÞÓkŒgœ‘+m|�ÔX'—.]z„¤›ø1u.ñ~ëÒêLX¬ôÒ¥K—NÓÙ`](éèíp¾»–’.‡ÂAS¾¥¼ÅD§ó¯?sêu¬Ó6.—n�•kùÄS�ù¦N$}Õœy–›:ègÆ’Î……B¡ðD«³a¥ŠÑHìi,. …J:V¦�¥¤!~N:%îÑŒ|ËÙz‡GÔñ#þxo�¯hÌ’ôŒó -OtVJÒ=­BË+�”kúö”¤aJš'ç›­r5^3¶’‚þ­ÐB=¯>Ð!ÖFår¹7ø2Ïñ1Ã{KÏ1¦®1v”Ëår“�~‹ä6âKS¿E¯å¿™‰V{6¹#=ÊWrjœ¨T†]Lj^`4!)=Jd<:Â:浘‰O^ØÅ˜Î„P’> žû Ô·½õÞ¯Û3æ‘ÔŽV³,—æê¼ä¤-Ei.—Îe¬»Á€ÜlÑg^p”¼¡Ž[Ö*r—Zþ= V;÷MA³Ö5šÇþŠÌŸíÃêî˜;œŽ°Ø!u‡a‡” ‹¹°˜÷äÃpïBØ'I�a˜•¤Îo¹ëâýL¢özŰ?†]Nox@ ¾p–ÜþKï¹éøœÔ†)§?œ¥d•!=6n}Ç7¿ß¯ÎwÚèß&•�ÿÀ�q�4£×h5¬m3›`âµs FÓRRfÞmå&„mæ W—öžýEͶ–o3É}ÿ»¡ŽØê3«»Ô†³K«X öÉ•ýFm;˜qéCËSúÇÿcVP8 æð#�*‚‚>1ŠC¢!¡*P ¦î¬/¾#ø¡ùÓGÀýØüzé¯.ýtþwñ/ܨÿà=À?F¿ÃþZ{ªþ€{Àóü‡ù§úóì¿ÒÿLýÀ~™ÿ+÷ýNô`öþsþØù7öU/ïõ?Âü ~¹ÿàÿ9ð üûû×þ-mÅûÞ¿[.ôý릊šçp;�Ç.L*Ë´XL*]óT"ª¿²%¡Rïšž€þÿÈYÞmûØâgÖ’]~%Eó�‹6ÀÆe«Ú Û8¿tÀ‡Ï§ãyû\¦ÈÄd'ó'OQs¡=˜»€O¼­Û©É7R쬙Wƒ:ñ)°á`õ…IÛ�]Ë{ÑwÿüýeN�{rÕÒùì –30sÁÂ!_T1X1еÿèF\Øx𰡇Ÿö´}-ð7+ÕC™è3íB4Wj–q}%òJÈ]½$^íE¥pcuçBŒì²Í¨ËR[h/ÈnŸðeãå\Ò�Hž?‰ÊWOIzQ>Í>þ £nÚºíòþïí_Ê[>ükLVàkÝký£Z/hlFIŽ¿ü–`qYÚ,¼Éö·Ž²ùfô!À ™¢"LK“½Ítc€ÔÎüFv$Ó‡Ó[qšÈZ¦2›¶;„û°¹Çj¶(⠡اó´×=Kk“5H§¼Pë>¥O�UšVëwðâpç)e9Ì>{ì;Ùl –€úÄ”\í?¥ ¾Ò¥1˜Ô9øXâ-ø[¬¹ç �pDÙf]Ôò’üs„œ˜C&í´ äT@•ô á.Óïeþ¿âÌ™ü5ê}NÞ·«¾¤S»vG2j÷ ó|>üG%»úǡŒX%N”Ó{ؼ´G\£mâ*¿Zâqú4Ùz02¯”ëßð.û=Bqfuw¨�b�1÷IT›Ðæ`Ü{@¹ÆÙé€lh-Ý©8RZÈs} K™+YO¼hüä/¾Ó(oð¯a» ù³s ¼Õöw¥ÿè�1ÄT*›æ=ppàz2ñË ìC,ï'"š ÂFš4Þ5 IJ†ÐÃx‘õ›ÁGò¦1kþIô�$ œý/õkº4¾¨”—qiÒ1‹‹i”Ô^‘ZÈ DéE¨îß»¨ŽÎ¼¹�”¤ Ê:"êã¯éT¼ú}M÷%§µˆþ›£ö‚Ï5Ç!1!žh�¯&b3oéáèjFSZŠæGILm(†‘‘Ï:{ègvlàJ€!èÕ£�––ðC“ ôd��©úOÉ‹/6kÁèÌßu]/¶øÃ9ü¾òMÇóƒ## W %Õ¼2~ÔV}ñçÈÝh‡vëkA‡8ýCûÆyÝ¡º<ÑÈz€Ä4ºV«Ê˜›f#ŠY‘Hºú.)˵h/¤ÏÔ1w»o>¥aúïÉ|!ÞíRµÌ)ïX‘ˆK íÑÿµ¡n¾¤¢�Á¾k““ùùUùÓu3,‹þ;ùEÕŽVà¢CŸþ'S£Öž[Ùµ3ûl<Ÿ6ðÃΡ+<¯YIóÓi�-·.¬û"Ó5òø Ì ^•ÓÚ 7£ÿøÐ]©r邸Z?ÚØùÜ{ž±¦³øe�W• �Z†¦ EÕ¨ø¹äöÞÉß…ëó g¢¦ÃK&g~NŚª]d‡¾P®ú° MŽui¡HÁû?ùÛ9gÑ' ‰ ` ë_/úÁšµDa¨LV ´§g\ñ2ÚØÁ l‹äø5<�ü\’W§™�ÊÁóÐ3)Ú*ÓäQ ŽÍÆ=/7=ÔTÖ;‹üd°E¦ÀÈRýD´v¹äò-†Wë<Öðg,è­Å‹#�Z¯¿#;d'5?!˜ïý÷\PôÔ6 _Xî}º¸d²Ëº.t{ÿ=bfª®;�‚)pHmÓÌ=£Tyïzêlå5Y¿ÆÖ+h¡¹e_ȹJhƒš ùðP›Ô­*{]“IâÔ"·cÈ‹ðà×¾ý-÷ªYpüVF× #šWãÊßímÈÙ�QÁº`ü¤Ì‘ÑC5Q½6Á¡¢N8¯¯x4Ð1îÐû†'¡â="„¬ŠTZâ1ŒQ3Wý½4Öç­Å‘ƒÐPù¹šFÓ:“EËã505j¦¾'Eœ·ùÖÝë &·Dßï"Ò¦ËÚ_‚”VÆã½ Û/Âê‡Ó_ìl�Žx]s¼þ¢m _þKt°�% ÙqÀ=ÑÔ