Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Bug in Image getWidth() and getHeight()

Go to End

2 Posts   2734 Views


Community Member, 2 Posts

3 February 2007 at 12:22pm


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



Administrator, 690 Posts

4 February 2007 at 11:27am

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