Show
Ignore:
Timestamp:
12/17/2007 09:03:15 AM (13 months ago)
Author:
Shadowhand
Message:

Moved Image to system/libraries, preparing to delete the image image module.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/application/controllers/examples.php

    r1536 r1566  
    311311        }*/ 
    312312 
     313        function image() 
     314        { 
     315                $profiler = new Profiler; 
     316 
     317                $dir = str_replace('\\', '/', realpath(dirname(__FILE__).'/../upload')).'/'; 
     318 
     319                $image = new Image($dir.'moo.jpg'); 
     320 
     321                $image->resize(400, NULL)->crop(400, 350, 'top')->sharpen(20); 
     322 
     323                $image->save($dir.'super-cow-crop.jpg'); 
     324 
     325                echo Kohana::debug($image); 
     326        } 
     327 
    313328} // End Welcome