Changeset 1564

Show
Ignore:
Timestamp:
12/17/2007 08:59:10 AM (13 months ago)
Author:
Shadowhand
Message:

Preparing to move the new Image library to system.

Location:
trunk
Files:
1 removed
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/image/controllers/image_demo.php

    r1561 r1564  
    99                $dir = str_replace('\\', '/', realpath(dirname(__FILE__).'/../upload')).'/'; 
    1010 
    11                 $image = new Image($dir.'moo.jpg'); 
    12  
    13                 $image->resize(400, NULL)->crop(400, 350, 'top')->sharpen(20); 
    14  
    15                 $image->save($dir.'super-cow-crop.jpg'); 
    16  
    17                 echo Kohana::debug($image); 
     11                for ($i = 0; $i < 1000; $i++) 
     12                { 
     13                        $img = new Image($dir.'moo.jpg'); 
     14                        $img->crop(200, 200, 'center', 'center'); 
     15                        $img->resize(200, 150); 
     16                } 
    1817        } 
    1918 
  • trunk/modules/image/libraries/Image.php

    • Property svn:eol-style set to LF
    • Property copyright set to Copyright (c) 2007 Kohana Team
    • Property svn:keywords set to Id
    r1563 r1564  
    44 * This class must be re-initialized for every image you wish to manipulate. 
    55 *  
    6  * $Id: Config.php 1514 2007-12-13 16:39:36Z Shadowhand $ 
     6 * $Id$ 
    77 * 
    88 * @package    Image 
  • trunk/modules/image/libraries/drivers/Image.php

    • Property svn:eol-style set to LF
    • Property copyright set to Copyright (c) 2007 Kohana Team
    • Property svn:keywords set to Id
  • trunk/modules/image/libraries/drivers/Image_ImageMagick.php

    • Property svn:eol-style set to LF
    • Property copyright set to Copyright (c) 2007 Kohana Team
    • Property svn:keywords set to Id