Help for this page

Select Code to Download


  1. or download this
    sub thumbnail{
            # receives:
            #       file source (absolute path on machine)
    ...
    }
    
  2. or download this
    $image_in=$ENV{DOCUMENT_ROOT}.'/img/1.jpg'; #example, might have ENV D
    +OC ROOT on your server, need full pathof some sort though
    $image_out=$ENV{DOCUMENT_ROOT}.'/img/.thumb.1.jpg'; #whatever you want
    + to call it. 
    
    thumbnail($image_in, $image_out,80,'square',90);