Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Bug in Image getWidth() and getHeight()

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: 2083 Views
  • DrSlump
    Avatar
    Community Member
    2 Posts

    Bug in Image getWidth() and getHeight() Link to this post

    Hi,

    I've just come across a small bug in /saphire/core/model/Image.php

    The getters getWidth() and getHeight() return the values interchanged. That is, getWidth() should call getDimension(0) and getHeight() should call getDimension(1).

    cheers,
    Ivan

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Bug in Image getWidth() and getHeight() Link to this post

    Thanks for the note, Ivan. We've added it to our bug tracker.

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