ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
Re: [PEAR-DEV] new PEAR Class
by Alan Knowles other posts by this author
Dec 31 2001 3:24PM messages near this date
[PEAR-DEV] new PEAR Class | Re: [PEAR-DEV] new PEAR Class
Funny that - I did one of those for gd & imagick last week..
It aslo does rotation.. and should have a compatible interface on gd & 
imagick.

not particularly pearized.. but it uses sytax something like this.


$image = new phpmole_Image();
$image-> load($filename, $type);
$image-> max=;
$image-> new_filename="somefile";
$image-> resize);
or
$image-> rotate(45);

--- this should really be improved to do something like

$image = new Image();
$image-> load($filename, [$type]);
$image-> resize(100,[50]);
$image-> rotate(45);
$image-> convert_to("JPG");
$image-> save($newfilename);
$image-> free();

anyway codes GPL/(or what ever licence you want to suggest) - so 
borrow/steal/delete :)

GD version
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmole-ide/phpmole/modules/directory_viewer/
phpmole_image_gd.class?rev=1.1&content-type=text/vnd.viewcvs-markup
Imagick version
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmole-ide/phpmole/modules/directory_viewer/
phpmole_image_imagick.class?rev=1.4&content-type=text/vnd.viewcvs-markup

regards
alan





-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-dev-unsubscribe@[...].net
For additional commands, e-mail: pear-dev-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:
David Peter
Alan Knowles
David Peter
David Peter
Jan Lehnardt
Jan Lehnardt
Pierre-Alain Joye
Jan Lehnardt
Peter Bowyer
Mika Tuupola

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved