I recently downloaded and am really liking this lib. I did have one question I was hoping you could answer. Right now I can resize and save an image but I'm trying to use this as a dynamic image generator. I was wondering if I could do the resizing and then display all in one fell swoop. I tried the following...
$mo = new imageLib('file.png');
$mo->resizeImage(width, height, 'crop');
$mo->saveImage('newfile.png');
$mo->displayImage('png');
The resize and save seem to be working but the display is not working. Once I make a subsequent request I can see that the new file has been written and can serve that up but I am having trouble displaying it upon initial runthrough. I'd really appreciate any help. Thanks!
I recently downloaded and am really liking this lib. I did have one question I was hoping you could answer. Right now I can resize and save an image but I'm trying to use this as a dynamic image generator. I was wondering if I could do the resizing and then display all in one fell swoop. I tried the following...
$mo = new imageLib('file.png'); $mo->resizeImage(width, height, 'crop'); $mo->saveImage('newfile.png'); $mo->displayImage('png');
The resize and save seem to be working but the display is not working. Once I make a subsequent request I can see that the new file has been written and can serve that up but I am having trouble displaying it upon initial runthrough. I'd really appreciate any help. Thanks!