CodeIgniter Forums

Full Version: image lib confuses me
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Does anyone else find the image library confusing?

Why can't we just have stuff like this:



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

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

$img->crop( fromX, toX, fromY, toY );
$img->resize( width, height, retainAspect ); // alternatively, if width=false or height=false, retain aspect automatically.


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