mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 18:32:56 +02:00
added Image::width() and Image::height()
This commit is contained in:
@@ -213,6 +213,16 @@ class Image extends File
|
|||||||
return $this->getSize()->width;
|
return $this->getSize()->width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Alias of getWidth()
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function width()
|
||||||
|
{
|
||||||
|
return $this->getWidth();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates current image height
|
* Calculates current image height
|
||||||
*
|
*
|
||||||
@@ -223,6 +233,16 @@ class Image extends File
|
|||||||
return $this->getSize()->height;
|
return $this->getSize()->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Alias of getHeight
|
||||||
|
*
|
||||||
|
* @return integer
|
||||||
|
*/
|
||||||
|
public function height()
|
||||||
|
{
|
||||||
|
return $this->getHeight();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads mime type
|
* Reads mime type
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user