Animate Images: A Children’s Encyclopedia
Last updated
Was this helpful?
Last updated
Was this helpful?
Legal Notice Please remember that reference images may be subject to copyright. Make sure to respect the law and avoid sharing the animated versions online if doing so could infringe intellectual property rights. Just use them to bring a bit of joy to kids at home
Today, we’re going to bring a page from a children’s encyclopedia to life — with pictures!
Here’s the plan:
Take an article from some free encyclopedia for children. (Of course, you can use a children's story, short illustrated tales, or any other suitable content.) To keep it simple, we’ll focus only on text and illustrations.
Based on each illustration, a smart chat model comes up with a short video idea — a little scene that matches the content. Model generates a video model prompt.
With this prompt, generate a 5-second video using video model and download the generated video from the server.
Convert it to a GIF using any free online tool.
Replace the original static image with the animated GIF.
Repeat this process for every illustration on the page.
Let’s take the raccoon article from the previous section. To upload the illustrations into the chat model, we’ll save them to disk first. Later, you can use the resulting folder of images to build an HTML page with animated visuals.
Of course, the goal is to automate the process as much as possible — and to make the images look more natural and visually appealing:
Generate looping videos to make sure the animated illustrations move smoothly.
Simply pass a page URL or document to the program and get back a local webpage with animations.
Add logic to skip images below a certain size, to avoid animating icons, logos, or other minor elements.
Support a wider range of image formats.
Automate GIF conversion from video directly within the program.
Let’s have the multimodal model analyze the image and suggest a prompt for the video:
Now it's time to generate a short video based on our image and the prompt prepared for us by the chat model in the previous step. We'll use a model from Kling AI.
We've generated two videos and will now convert them into GIF animations using , for easier playback on a web page. We'll also reduce the frame rate and size to ensure smoother playback. We'll save the resulting GIF files in the same folder, using the same names as the original PNGs.
You can also ask any chat model (e.g., ) to generate a web page with the original text and the GIF animations placed in the same spots as the original illustrations.