Part of the EllisLab Network
   
 
image lib confuses me
Posted: 01 April 2008 08:42 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  287
Joined  03-31-2008

Does anyone else find the image library confusing?

Why can’t we just have stuff like this:

$this->load->libary("image");

...

$this->image('image.png')->rotate"+45" )->saveTo"assets/images/rotated/_SRC_" );

...
$img $this->image('image.png');

$img->cropfromXtoXfromYtoY );
$img->resizewidthheightretainAspect ); // alternatively, if width=false or height=false, retain aspect automatically.

$img->output(); 

The current use of config etc is less useful to me than the imageGD stuff…

Profile