Skip to content
David Mongeau-Petitpas edited this page Mar 29, 2015 · 11 revisions

Methods

Image::url( $url, $width, $height, $params )
Image::url( $url, $params )

Generate an URL with image parameters.

Arguments
  • $url : The url of the original image.
  • $width : The width of the image. If null priority is on $height
  • $height : The height of the image. If null priority is on $width. If both $width and $height are null the image is not resized.
  • $params : An array of image parameters. (Optional)
Return value

(string) An URL containing all the parameters

--

Image::make( $path, $params )

Create an Image instance and apply the parameters

Return value

(Imagine\Image\ImageInterface) An Image instance from the Image library

--

Image::serve( $url, $config )

Create an Image instance and apply the parameters

Arguments
  • $url : The url of an image containing parameters.
  • $config : An array of serving configuration options
Return value

(Illuminate\Http\Response) A response object for the image

--

Image::parse( $url )

Parse an URL and get the original path of the image and the parameters.

Arguments
  • $url : The url of an image containing parameters
Return value

(array) An array containing the original path of the image and manipulation options