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:
parent
6a8fb9507d
commit
8cc16b4728
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user