1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-29 17:57:50 +01:00

added Image::width() and Image::height()

This commit is contained in:
Oliver Vogel 2014-05-16 17:35:22 +02:00
parent 6a8fb9507d
commit 8cc16b4728

View File

@ -213,6 +213,16 @@ class Image extends File
return $this->getSize()->width;
}
/**
* Alias of getWidth()
*
* @return integer
*/
public function width()
{
return $this->getWidth();
}
/**
* Calculates current image height
*
@ -223,6 +233,16 @@ class Image extends File
return $this->getSize()->height;
}
/**
* Alias of getHeight
*
* @return integer
*/
public function height()
{
return $this->getHeight();
}
/**
* Reads mime type
*