mirror of
https://github.com/Intervention/image.git
synced 2025-08-20 04:31:24 +02:00
added missing doc
This commit is contained in:
@@ -141,6 +141,12 @@ class Image
|
|||||||
return $image;
|
return $image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set properties for image resource from image file
|
||||||
|
*
|
||||||
|
* @param string $path
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
private function setPropertiesFromPath($path)
|
private function setPropertiesFromPath($path)
|
||||||
{
|
{
|
||||||
if ( ! $this->filesystem->exists($path)) {
|
if ( ! $this->filesystem->exists($path)) {
|
||||||
@@ -178,6 +184,12 @@ class Image
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set properties for image resource from string
|
||||||
|
*
|
||||||
|
* @param string $string
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
private function setPropertiesFromString($string)
|
private function setPropertiesFromString($string)
|
||||||
{
|
{
|
||||||
$this->resource = imagecreatefromstring($string);
|
$this->resource = imagecreatefromstring($string);
|
||||||
@@ -187,6 +199,13 @@ class Image
|
|||||||
$this->original['height'] = $this->height;
|
$this->original['height'] = $this->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set properties for empty image resource
|
||||||
|
*
|
||||||
|
* @param int $width
|
||||||
|
* @param int $height
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
private function setPropertiesEmpty($width, $height)
|
private function setPropertiesEmpty($width, $height)
|
||||||
{
|
{
|
||||||
$this->width = is_numeric($width) ? intval($width) : 1;
|
$this->width = is_numeric($width) ? intval($width) : 1;
|
||||||
|
Reference in New Issue
Block a user