Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Cropped image radius - is this possible?

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

Page: 1
Go to End
Author Topic: 778 Views
  • RichMcNabb
    Avatar
    Community Member
    34 Posts

    Cropped image radius - is this possible? Link to this post

    Hi There,

    I am wanting to know if it is possible to upload images and then have a crop and radius (to make a circle) applied at the same time

    i.e return $gd->croppedRadius(400,400);

    Is this possible?

    Any help would be greatly appreciated. Cheers!

  • RichMcNabb
    Avatar
    Community Member
    34 Posts

    Re: Cropped image radius - is this possible? Link to this post

    To get it to work I just used CSS3

    .executive-team-member {
       height: 156px;
       width: 156px;
       -moz-border-radius: 78px;
       -webkit-border-radius: 78px;
       border-radius: 78px;
    }

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