How to fix the «failed to open stream: Invalid argument in vendor/magento/framework/Image/Adapter/Gd2.php» Magento 2.2 bug in Windows?

See also: