Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Resize images uploaded to assets automatically

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

Page: 1
Go to End
Author Topic: 1018 Views
  • Bert
    Avatar
    Community Member
    19 Posts

    Resize images uploaded to assets automatically Link to this post

    Let's say you have a shared webhosting package with 100MB of diskspace. If a client would upload just 25 pictures taken with a digital camera (3MB on average), you've ran almost out of diskspace.

    Is it possible to have images uploaded to assets to be resized automatically to let's say 800px x 600px and thus a much smaller filesize?

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Resize images uploaded to assets automatically Link to this post

    You'd have to do some hacking to the code. SS does resize the images, but always keeps an original in tact for future use.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Resize images uploaded to assets automatically Link to this post

    Yes you can do this, al you have to do it to customize your CMS to which well suites your needs.

    The silverstripe's GD class provides a lot of methods, read through this
    http://doc.silverstripe.com/doku.php?id=gd

    1018 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.