Search code examples
phpimage-processingimagemagickphp-gd

PHP: Building Smooth Image Transitions on the Fly


I'm trying to figure out via PHP if I can do the following. Imagine I have a two images. The first is an image of a square (50px by 50px). The second image, is that exact same square, only offset by 5px to the left.

I'm wondering if there is a way to dynamically generate all the images in-between to make this a smooth looking image transition (ie in this case generate the other 4 images to make it look like it moved from left to right). This would be a pretty simple situation, however would be applied to more complex images with the exact same premises, essentially using two images to predict the mediums.

Thank you in advance for your help


Solution

  • php would only be a wrapper, think eval() and google it, like http://www.linuxfocus.org/English/September2001/article139.shtml

    regards, /t