How to adapt `Magento\Catalog\Model\View\Asset\Image::getImageInfo()` to Windows in Magento ≥ 2.3.0?

Replace

with

A similar solution for Magento 2.2: How to fix the Magento 2.2.x image URLs bug in Windows?