06/28/2013 at 5:09 pm
#263872
Keymaster
@ Isaac
I looked into this deeper. The value is not hardcoded. It is an option that can be passed to the getImage() method from the template.
In the card.php file for Tile Plus you would change this:
$entry->getImage( array(
'image' => $atts['image'] ,
'height' => $atts['image_height'] ,
'width' => $atts['image_width'] ,
'fallback' => array(
'type' => $atts['image_fallback'] ,
'string' => $atts['str_image']
)
)
);
to this:
$entry->getImage( array(
'image' => $atts['image'] ,
'height' => $atts['image_height'] ,
'width' => $atts['image_width'] ,
'zc' => 1,
'fallback' => array(
'type' => $atts['image_fallback'] ,
'string' => $atts['str_image']
)
)
);
I recommend using 1 rather than 0 though because 0 will not maintain the aspect ratio where as 1 will resize and crop while maintaining the aspect ratio.
