Part of the EllisLab Network
   
 
image lib confuses me
Posted: 01 April 2008 07:42 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  232
Joined  03-30-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->crop( fromX, toX, fromY, toY );
$img->resize( width, height, retainAspect ); // 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
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120520 Total Logged-in Users: 45
Total Topics: 126590 Total Anonymous Users: 3
Total Replies: 665504 Total Guests: 364
Total Posts: 792094    
Members ( View Memberlist )
Newest Members:  defrtymusclesseownikaiyuharry295tanyagrey31212sarah123CasERispukgendale