Magento 2 question here:
I've made a custom attribute (media type) with the name of 'bike_range_image', and tried googling and searching in the core and everything I could to get the image with a custom size and such, but can't find the right approach.
I can get it as text, but obviously that's not enough, so this won't cut it:
$productImage = $product->getCustomAttribute( 'bike_range_image' );
Now, some examples in themes that are out there suggest I do this:
But this gives me an enormous Magento\Catalog\Helper\Image object that doesn't seem to have the right data. (I've got the right product if you're wondering).
Does anyone have some pointers for me?