This isn’t an issue that I’ve ever come across before, but I did find a similar issue reported on the Magento 2 GitHub Repo from 2017.
It looks like someone was using a 3rd party extension that had created some broken images (specifically 0kb files). When the
bin/magento catalog:images:resize command was run, it would Error out when it tried to resize the broken images.
At this point, I would check 2 things in the
- Check that file Ownership and Permissions are correct, in case it’s a permissions issue (i.e. the files can’t be read/written by the command)
- Check if you have any odd looking files (e.g. 0kb)