Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Automatically Resizing Images

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

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

Page: 1
Go to End
Author Topic: 1214 Views
  • Bandit
    Avatar
    Community Member
    10 Posts

    Automatically Resizing Images Link to this post

    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

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Automatically Resizing Images Link to this post

    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.

    1214 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.