Files


$image Properties (in addition to those in $file)

$image->original

Introduced in Version 2.0

Description

Reference to original $image, if this is a resized version.

// Output thumbs with link to original image
foreach($page->images as $img) {
    $thumb = $img->size(100,100); // 100x100 thumb
    echo "<a href='{$thumb->original->url}'><img src='{$thumb->url}' alt='' /></a>";
}


Post Comment