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.

Archive

Our old forums are still available as a read-only archive.

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

Automatically Resizing Images


Reply

2 Posts   1256 Views

Avatar
Bandit

7 December 2007 at 9:56am Community Member, 10 Posts

Howdy

I'm using the latest Silverstripe release for a website of mine (2.2.3 RC2 or something) and wish to have all images that are put in or uploaded to a page resized to 200px wide.

How do I go about doing this?

Cheers

James

Avatar
Tim

7 December 2007 at 3:49pm Core Development Team, 201 Posts

If your attaching the files to a page, you can resize them in your templates by using $Image.SetWidth(200), of you may want to use the Gallery module if your needing to resize images which are in your assets (files and images) directory.