Additional tags

sandra1n edited this page May 18, 2012 · 10 revisions
Clone this wiki locally
  • cache() Returns image path in cache folder or empty string when image not found.
    Requires database.

    Example:

$image->load("images/totem.png")->crop(200,200)->cache();
  • adaptive()
    adaptive($width, $height, $upscale = false) is used to adaptive resize of images.

    • [integer] $width width in pixels of the resizing image
    • [integer] $height height in pixels of the resizing image
    • [bool] $upscale upscale is a boolean and controls if the image can be upscaled or not.

    This method is chainable.

    Example:

$image->load("images/totem.png")->adaptive(200,200)->cache();