Thumbnail in page list sizing

Permalink
Im having trouble trying to get my thumbnail to display at the size I want it to in a page-list template, I had a go at the tutorial onhttp://www.codeblog.ch/2009/03/concrete5-templates/... but it doesn't seem to size my thumbnail to the size I specified, but instead to 244px wide when the picture was 500px wide originally and I set the height to 225, help!

<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$textHelper = Loader::helper("text"); 
$imgHelper = Loader::helper('image'); 
// now that we're in the specialized content file for this block type, 
// we'll include this block type's class, and pass the block to it, and get
// the content
if (count($cArray) > 0) { ?>
<div class="ccm-page-list">
<?php 
for ($i = 0; $i < count($cArray); $i++ ) {
   $cobj = $cArray[$i]; 
   $title = $cobj->getCollectionName(); ?>
    <div class="ccm-page-list-itm">
<h3><a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $title?></a></h3>


Thanks in advance

Matt

MattGreyDesign
 
Remo replied on at Permalink Reply
Remo
The thumbnail method keeps the aspect ratio. It depends on the height of your picture as well.

Can you please check that? Or post the dimensions of your picture..
MattGreyDesign replied on at Permalink Reply
MattGreyDesign
I understand that it keeps the aspect ratio.

Here is a little diagram to explain:
http://www.mattgreydesign.com/assets/images/diagram.jpg...

The actual failed outcome is on my homepage at the moment:http://www.mattgreydesign.com

Right then...

The original picture is 400 height & 960 width

and...

I want it to thumbnail into 225 height & 540 width (which is the same aspect ratio)

but...

it seems to only want to be 100 high (and then the aspect ratio width).
MattGreyDesign replied on at Permalink Reply
MattGreyDesign
I cant see any reason why this shouldn't work, has it got anything to do with the concrete version or PHP code?
zoinks replied on at Permalink Reply
Judging by the looks of this...
http://mattgreydesign.com/projects/...

It seems you figured out how to do this, no?

Any tips? I basically want to do exactly what you've done on this page (if each of those images is pulled from a thumbnail attribute and this is a pagelist styled to be a 3-column portfolio page). I would put some descriptive text under the image rather than overlayed, but actually what you did there looks pretty complex and awesome.