I have a need to generate a custom sized thumbnail image that isn't defined in the catalog edit page.
In other words, I have a product catalog where I provide a place to choose/upload an image file that serves as the "Main Image" for the product. This image is used in a varety of places (product list, the main product page, etc). The main reader page the size is defined in the field definition and the list pages are using the override setting in the module. However, I am setting up a secondary reader page with an alternate layout where the default size I set will not work.
Can I call the "Raw" image in the template and give it the new dimensions and make the appropriate thumbnail?
So, for example, the current code I have for displaying the image is:
Code:
<?php echo $entry['data']['product_image']['value'];?>
What would I do to override in the template the current image size and give it something specific for the new reader page? I'm not interested in having it customized per item, this would be the same for all items.
Bookmarks