Right now I'm trying to loop through each of a products images, and output their fullsize image url, and the images sizes.
PHP Code
<?php foreach ($this->getGalleryImages() as $_image): ?>
<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>
<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image')->getOriginalHeight(); ?>
<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image')->getOriginalWidth(); ?>
<?php endforeach; ?>
Trying to figure out why this returns the main images size for every image.
This code doesn't work at all
<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->getOriginalWidth(); ?>
Neither does this...
<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getOriginalWidth()); ?>
Any ideas?