For some reason, the image gallery for certain products isn't resizing its main image, but other products are doing it fine. Here's an example of a product that isn't working. Here's an example of one that is. As you can see, the images themselves are the same size, but one is being sized to ~800px, and the other to ~300px. Both have inline styling, but I can't figure out where this styling is coming from.
It's just using the default Fotorama Slider. I've attempted to add various maxwidth
, max-width
, maxheight
, and max-height
attributes to various places:
- x-magento-init block in
app/design/frontend/<theme>/Magento_Catalog/templates/product/view/gallery.phtml
vendor/magento/theme-frontend-luma/etc/view.xml
vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml
No dice - I can get changes to appear on the frontend, but nothing I do fixes the image sizes.