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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   3088 Views

Avatar
DrSlump

Community Member, 2 Posts

3 February 2007 at 12:22pm

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

Avatar
Sam

Administrator, 690 Posts

4 February 2007 at 11:27am

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