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Ûâ:zy†C8„B!ÔÝeÝÝÝݵînë¾u u÷®»¤Þ†CHÝÝÝB8 ïÊÌgóåo‰ˆ €Ëê�¤ÒzS1´6ê—;zRïñâØkªlV=ú,™èýUÏ^Ñ™zü [U¯!s�ÆíT�#“ç¢�¢92ºœ±Põ2¼‡}bkÈô?ªl“(�ñ[«-¯!ó7[&Y¤J—(’îÃß öÍq›% ¤¹ü^ 09Ò³V|#i.?€à‹/x–ŠæI÷ „@k§XžtN‚`ƒó6ŠäHû7 Šk,Ë‘þ„`²}"«È´©Ö‰æÈÄ„°`›xžŒ<žirÑ2ñudèHg1Ù%YC¦zo¡Ÿ3ŒÛ%µ‘ÌeÓ› ¶XÊÉ*u6“Z®†¨\œ=;_&ÉÐ%ö’4?üÓ{�]ÓªÍ /Œ/^”S¶d�dK¿<”@Œ4°“Û.µ•$Ùm�Œ½qØn±ÖÃãßéa�ÔÙ/÷ úÝÃ%øHL¯SÔCyôƒGeö7ÿÅ$ÎGº`|&¯É»-®Ø)¶û ð¯Wãc]0¿j¤&Zá@jìÅ ‹S3ø óñ„ñ®‰¿جOîôùó'W h�ب$ij„2¶_�oôÿH2Q¢ø OGéCL«„¤»‘ð\„°:ŸqMôSDÝS$<BŒý˜&Z“Põš¡ÆA\í¿FIä=ž !ÇNL±¯2RxÛVåS1l€oè":ÿY;G$þHŽ‘(Ï"X°ÓET»}äCW4É4ksM§…§9 ó¬6Ä71‰C"!¡+m4 ²ÞÜÏwú¯âN¿jüKüªù‹§,û‰û¡þ£•ÐØz•ì÷ãµþâÿ™÷ýØGܯ¸èŸøí_Úÿàö€óúÙûGîÙýö�ÜÏ ôñ?ý»?ný€?fýX?Ðéÿ#ð9ûcÿ£ýÀOë§ýÞ°ßþ&ï *qÿܾɳ]–w}õÞê!ý�Ð7ÏLûÿ-þ­è»ëëö«Ø¯õpÇñÇ‹þK~€ÑULñ,¯> 4 ¶d†¬i“–ÛÄN8.PHõ/‰×]‚ž8÷›Ý½§1]â¡U¡êßÈzLj›ÛÏù(Bq ` È4ßRšù k䄬1ZƒK‘*Þ‡¾`7Ž^‰’½›t㾇3þÊÏOÿd6¨É×o8ñp£wˆÎ<_ñ¢þþîªçÿ cPÕM}~#ƒTÈ‘" _�Wú€‚ZœOjÏ·æÏç#ÎØ¨žå.'œí'mËjÎÞy% HÇzÿå8Ø–pÛ‚’þŒÕùùwêSȧ@  SæG¦Æ|äQ×ÞнI™).°´lÂŽrØô!œI³Sއz£Â�IºµX4ÚZFnÓ^û'–щ¶eSÍFû^#¢*7Jƒ+ÖÖsVL¨…íª^žïMÝÃ3é&ÿ$2Ljÿ¼üÕÞç¾½£ã S ¬†:a^Í|Lýb+¡áßkרÃùæåµ;·œ9¹{¡ªô;D»¨~{žóÇcŸ#5·n³½S5£Ì(Óf�u óWÃÙa©[ÿU9=Ú£%-Öd_·4JVG ¥ÄW·=NÒs—ŽŒõæÁ´Ý¸�q%RC%Ì¥EIÄÙއϼñ >^šf�Ò¤Ë\;×*]ÌõhíêßÄÌ?¨°Ü�œU©ó¼a¾â ^dTÊí8ÐcçxlàÿXß…n+.¢?EˆŒ³ }É‹ùU�`„þ¼Jñ‰ñI×Yq4:‡nú]K9Áÿf‚=p�©s�gB|× =Ÿéãð×ÕH×pÏþ€‘6¹’M°EÞ-ÍHh^jô „× ýDëŸ;2¯0qBP.ðêÃ@¬˜Ø­ˆÌ x/ =^ƒt›/3:··Ž:SfÓÄÜÛw¥<ÊÅ^kûU~SUï",ÞG˜üGzWÁ;f�ˆÈÛ‡MËû æDZÏu XÔQAĸ&º,cÃM ˆ›îÁ!�Êçiø¹­˜:è‡Ö2ãt�K¦íB€ÕÝ 5Àñì }Â,Ëo+›ׄHrô¡è§ð(GÉtâÑëj†éÀiõ÷íN 拯 ,³eî¼� bíy›q“î²5UvË£ÆI¤Z;‚†ÕE8r,¥O‹nl€± } zÄÞÅ8Ëÿ]ìã®Á�ý,O1½pÙ™¢äPͤ�¬±âJ+µªUËÍÕ)x‚29&ØJÅ-h¯nšUÇ}¥)ÑÎð× —œÅH‹'ƒf°æõ6³è÷Aˆ€žÙ-\õ»¡Žt:5ß#’ü[Ôë;0£ënT@n�¥á¢9Ú6lX›ó§×¸L’Þ²æ¦V’.œ›#Qî?¢‘ûœ§3@ÍpQ£wÛj¥ÕEuûΦM˜�‘|*ÈãÖ`½'IMŒÎ„ h2ÂqЇl«þxx;Àúþ®<¬�ÞÑ�Ot‡Ç‡Åñ *ϱ)'\‹yLuÊ„*B/ØÜJê~5b8¹ ÓclÓ`˜½×óœ'WD'ÝÞº‚Ê6ä%§Si]¨/]ÅBmO8öJ-‰ ;_suð½çFv-EwŸ]9ÙäìÏS6úÆ¿Vìn¾IdNe BªœV¿ÍI;‡íœÒÞÛ~ôÂïțl¯!C`ú�£HØ}cI{/NÃ"ÌÆ˜æàܤî Eþ†Ð¥Œû{’<)bôy0Ÿûn³‡„p¿ ÚNðnx?­Žíj¨œý¡O_jè L”²b*HkبRˉ{ H)Z€Aw&’¢>ÉÿÝ#Y4�7СóDÞÑl›€²?VWªÙ%YøÞXïEéiigÒuÀ϶Ö�Øž•‰¯‹šÒsæzd˜¨t¸îŒ¬ÁŸŽ&‚ô|üàœ\m* s&0`ÞF†_Á¨w~ñB °‰BÚ›žÞ`‘ÎQd–}°:»ª ¹c§“͇[g&: á\gغç8?[—�ΞCp 7ð¦×mQ›Ûf"–Ó4�Á;™ÖÄu#gi:ÛW;7½ªÖu½‹W.5õ¹)ºÔª$„!¿,9½Ôü죃mÁ(ƒ¯¹tš–¼g—ªZ²K«ñøún<ÿïoÝ?³V–“6®¸ŠÒAÞ£ЇE³ý'T1T¤”œgtÜ()Qw¶Ièö"p¢£në…}Âã(rtÎÁ˜ƒ£‘«g�ÿ½!Ó:é–]µÏí/yÿ:ø-‰‰ÆÝÊÔÙVØxOÕì³Àzðà§yŸüi î§³osÕ Ž ž!‹"„]#±ÚÂç³L Š€êÇæÅ òLþ¨,O>5­B.ˆÚ=²œ8„<€…«"-Ög4»Ã;¼…¢èœ{KÕ{˜ÒL(ù¹†×Ë/€pµã´Ý Þq‰³* Æ×•ô�.Å@ß½V!Nîâ‡XÉšàŸX:Ì Ç*–°µm3(mÁ@j¾9¿ýé[æ¡$öí Ä!È4WèhŽÅnÈz¾òÉ�dðßydβy¡ü3°Î¸€