• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D03-Apr-20121.1 KiB3126

README

1Quick Readme:
2@ 2002-5-16
3These classes are of alpha condition, and have not been extensively tested -
4primarily because ImageMagick is broken on my ISP's server, NetPBM is missing
5a few of the modules I've used here, and I haven't had time to extensively test
6the GD implementation (donations of servers, old computers etc can be sent to
7peter@mapledesign.co.uk :-D)
8
9Please have a play with them and see if they work as you expect them to.
10
11Peter.
12
13----oOo----
14Quick rundown - more in the Examples folder:
15
16define('IMAGE_TRANSFORM_LIB_PATH', '/usr/local/ImageMagick/bin');
17require_once "Image_Transform/Image_Transform.php";
18$im = Image_Transform::factory('IM');
19$im->load('/path/to/Foobar.jpg');
20
21$im->resize('600', '480');
22// next will resize so that the largest length is 300px - height or width
23// This works on the original image, not the 600x480 one which has been lost.
24$im->scale(300);
25// Show the image...
26$im->display();
27// Again, the following scale works on the original image, not the 300px one
28$im->scale(150);
29$im->save('/path/to/NewFoobar.jpg');
30// Now free the memory - should be called free?
31$im->destroy();