Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Image rotate($angle)

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

Page: 1
Go to End
Author Topic: 251 Views
  • ambient
    Avatar
    Community Member
    123 Posts

    Image rotate($angle) Link to this post

    Hi all,
    I'm using Arams tutorial from ssbits to rotate my images but unfortunately when the image is rotated it has a black background even as a png.
    Is it possible to make the background clear so that the background image will show?
    Thanks!

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Image rotate($angle) Link to this post

    More people have commented on the fact that Silverstripe's GD->rotate() function doesn't support png transparency.

    I'm not sure if this is still the case in 3.1, but if so, maybe someone has written a GD decorator that supports this? Or some third-party module? Worth a try to look for something like that.

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: Image rotate($angle) Link to this post

    Hi again Martimiz

    I hadn't realised it didn't support png. And i'm on SS2.4 for this website. (I haven't actually worked with SS3 yet).

    Ah well, back to photoshop so

    Cheers!

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Image rotate($angle) Link to this post

    For the record: It does support png, just not the transparancy bit it seems

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