Frequently asked questions about the Animation CGI script.
To set up the Animation script, follow these steps:
animation.pl to your cgi-bin directorychmod 755 animation.pl$image_dir - path to your images$delay - time between framesIf your animation is not displaying, check the following:
$image_dir path is correctTo change the animation speed, modify the $delay variable in the script:
$delay = 100; # Time in milliseconds between frames
Common values:
50 - Very fast animation100 - Normal speed250 - Slower animation500 - Half-second between framesYes, the Animation script supports multiple image formats:
| Format | Extension | Best For |
|---|---|---|
| GIF | .gif | Simple graphics, transparency |
| JPEG | .jpg, .jpeg | Photographs, complex images |
| PNG | .png | High quality, transparency |
To add more frames to your animation:
@images array in the script:
@images = ("frame1.gif", "frame2.gif", "frame3.gif", "frame4.gif");