How to fix product image not loading?

Base image loads in the catalog frontend but not on the product page. Loops endlessly like below

Applied the commands below (as shown here) but still not working

  1. php bin/magento deploy:mode:set developer
  2. rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/* pub/static/*
  3. php bin/magento cache:flush
  4. reset file/folder permissions
  5. php bin/magento setup:static-content:deploy
  6. reset file/folder permissions

is there any js error showing in console?

Hi. I managed to get it working by deleting everything in pub/media/catalog/product/ then re uploading the images.

yes i show js error
TypeError: obj is null
[Learn More]