Teaser image, can we set it to crop and size?

Asked by pastomen

For the teaser image is it possible to change the size of the image to a set pixel dimension, with excessive sides cropped for aesthetics. I.e. so all teaser thumbnails are exactly the same size?

Well why I'm here, and that the top story of a channel has a different sized teaser image, say like a "preview size", not "thumbnail size"?

Lastly what are the chances of getting emfield integrated, so that the video thumbnails also work in teasers?

Sorry for loads of questions, if you don't ask, you don't get.

Cheers in advance,

scott.

Question information

Language:
English Edit question
Status:
Solved
For:
ProsePoint Edit question
Assignee:
No assignee Edit question
Solved by:
pastomen
Solved:
Last query:
Last reply:
Revision history for this message
bengtan (bengtan) said :
#1

Hi,

You can control which image size 'preset' is used for teaser images at .../admin/settings/teaser_image.

The actual size of the preset is configured from ...//admin/build/imagecache/list.

For an example of 'excessive sides cropped', see the 'square' preset.

> the top story of a channel has a different sized teaser image

Hmm... interesting idea. I'll put it on the ever-growing of wish list items for later consideration, but I can't make promises about when or if it'll be done. Thanks for the suggestion.

> Lastly what are the chances of getting emfield integrated, so that the video thumbnails also work in teasers?

Similar case here. I've had requests for an embedded media field feature. At the moment, it's low priority relative to some other things in the pipeline.

> Sorry for loads of questions, if you don't ask, you don't get.

No problem. I try to put useful suggestions in, but it's not always easy to justify including requests in the schedule straight away.

Thanks.

Revision history for this message
pastomen (bbc5tv) said :
#2

Cheers dude, the location of the image file teaser settings was what I was really after.

I think I'll work on the teaser image for emfield. If I put some new code in the node-story-teaser.tpl.php file, will this work? Where the present pp_teaser_image print commands is.

I'm new to websites but got a thirst for learning so pointing us in the general direction would be good.

Cheers again,

scott.

Revision history for this message
pastomen (bbc5tv) said :
#3

Actually where do I adjust the size of the teaser images?

I've looked but to no avail.

Cheers,

scott.

Revision history for this message
pastomen (bbc5tv) said :
#4

Got it. Had to enable imagecache user interface in permissions.

Awesome.

Revision history for this message
pastomen (bbc5tv) said :
#5

Well actually ignore last comment, enable imagecache interface in modules in case anyone else has a go.

Cheers.

Revision history for this message
bengtan (bengtan) said :
#6

Oops, yes, you need to turn on 'Imagecache UI' under .../admin/build/modules.

Re: emfield ... Not sure of the technical details of what you're trying to do, so I can't quite answer it directly.

You can put code in node-story-teaser.tpl.php, but that file is meant only for presentation and html skinning. Any presentation (or higher level) logic should go into template.php or a module.