[eluser]Unknown[/eluser]
hello,
I have a problem i want to use the image manipulation class
for Creating a Thumbnail nd cropping an image but can't do
the two thngs at a time either the thumnail is made or the
image is cropped.
Is this possible?
can anyone help...
regards
[eluser]dmorin[/eluser]
When using the image class, specify a new image when you do each action. That way, you won't be modifying the original image and can use it as the source for each operation.
[eluser]Colin Williams[/eluser]
Resize. Crop. Those are two operations. So, first, resize $src_image and write it to $new_image. Then crop $new_image and overwrite $new_image. And so on, and so on for additional operations. Simple logic.