Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How do I resize an image if...


Reply


519 Views

Avatar
_Vince

Community Member, 162 Posts

24 September 2010 at 5:06pm

I need to resize images on a template.

The only problem is that the template is fed by the result of an SQLQuery, so all I have is a column with the ID number of the image, not the image object.

Is there anyway to access setWidth(), working back from the ID?