if you install magento windows system then change below file.
Step 1 : go to vendor\magento\framework\Image\Adapter\Gd2.php
find code function => validateURLScheme
if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes)) { return false; }
to
if ($url && isset($url['scheme']) && strlen($url['scheme']) > 1 && !in_array($url['scheme'], $allowed_schemes)) { return false; }
Step 2 : go to magento directory vendor/magento/framework/View/Element/Template/File/Validator.php
find function => isPathInDirectories
$realPath = $this->fileDriver->getRealPath($path);
to
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
After apply below commands.
php bin/magento s:up php bin/magento setup:di:compile php bin/magento s:static-content:de -f php bin/magento c:f