Before uploading two pictures, check whether they really describe the same canvas. A start image can be landscape while an end image only looks landscape because a viewer applies rotation metadata. A matching file extension tells you little about that difference.

This small Python check inspects the files locally before you use a free image to video generator. It reports stored dimensions, display dimensions after orientation is applied, and whether the two displayed aspect ratios match. It never saves or overwrites an image.

Two printed house pictures lie on a desk, with the house upright in one and sideways in the other.

Rotation metadata can make stored pixels and upright viewing differ. These prints illustrate the distinction.

Check the picture as it will be viewed

EXIF is metadata that cameras can store alongside image pixels. Its orientation value can tell a viewer to rotate or mirror the stored picture. A file's raw width and height can therefore differ from its upright display dimensions.

Pillow's Image documentation explains that opening an image is lazy; calling load() decodes its pixels. The ImageOps documentation describes exif_transpose() as applying the orientation and returning a new image by default. The script uses both operations so a readable header alone does not count as a successful check.

Use this with ordinary local still images you trust. It is a small preparation helper, not a complete validator for arbitrary uploads or a prediction of how a remote service handles metadata.

Run a read-only pair check

The example was tested with Python 3.12.13 and Pillow 13.0.0. Create a project environment and install the tested Pillow version.

python3 -m venv .venv
.venv/bin/python -m pip install Pillow==13.0.0

Save this as preflight.py.

import json
import sys
from PIL import Image, ImageOps


def inspect(path):
    with Image.open(path) as image:
        image.load()
        stored = image.size
        orientation = image.getexif().get(274, 1)
        upright = ImageOps.exif_transpose(image)
        try:
            return {
                "file": path,
                "stored": stored,
                "orientation": orientation,
                "display": upright.size,
            }
        finally:
            upright.close()


if __name__ == "__main__":
    if len(sys.argv) != 3:
        sys.exit("Usage: python preflight.py start.jpg end.jpg")
    try:
        pair = [inspect(path) for path in sys.argv[1:]]
    except (OSError, ValueError, Image.DecompressionBombError) as error:
        sys.exit(f"Cannot inspect pair: {error}")
    (w1, h1), (w2, h2) = [item["display"] for item in pair]
    print(json.dumps({
        "images": pair,
        "same_display_size": (w1, h1) == (w2, h2),
        "same_aspect_ratio": w1 * h2 == w2 * h1,
    }, indent=2))

Run it with the start and end filenames in that order. Quote paths that contain spaces.

.venv/bin/python preflight.py "start.jpg" "end.jpg"

The stored pair records the pixel width and height before orientation. display records the upright dimensions. Orientation 1 is the normal default when no tag is present. The two booleans compare upright size and exact aspect ratio. A true value reports geometry only; it does not approve the composition.

In four local checks, a normal pair reported both comparisons as true. An image stored as 810 by 1440 with orientation 6 displayed as 1440 by 810 and matched the upright reference. A differently cropped image reported false for both comparisons. A deliberately invalid file produced an error and a nonzero exit status. Input file hashes stayed unchanged in all four cases.

Decide whether to re-export

A size difference does not automatically require stretching either image. Open both pictures upright, choose the framing you intend, then export copies with a consistent crop or consistent padding. Use the same choice for both. Stretching a house to fit can change its shape before generation even begins.

Equal-size photographic prints show a violet house at very different scales beside a ruler.

Equal canvas dimensions do not ensure matching subject scale.

If both booleans are true, still compare the subject at the same display scale. Is the roof larger in one picture? Does the table edge sit higher? Has the camera moved? The script cannot tell whether those changes are deliberate.

After exporting copies, run the check again and inspect them visually. Keep the originals so you can revise the crop without repeatedly re-encoding the only copy.

Upload the prepared pair and inspect the motion

Once the geometry and composition match your plan, use the Flaq AI free image to video generator to upload Start Frame and End Frame. Both are required. Select the intended layout and describe a small action, keeping the camera fixed when the source pair uses a fixed viewpoint.

The official page advertises 100% free generation, no signup required, unlimited generations and MiniMax H3. A request may enter a queue. These are the product page's descriptions; the local script does not test the generator or its processing of EXIF metadata.

A hand holds a transparent straightedge across two house photographs with matching sizes and level backgrounds.

Compare fixed background edges as well as dimensions before uploading.

When the preview completes, look at the middle of the movement as well as its endpoints. Check whether a straight background edge stays straight and whether the subject keeps its intended size. If either changes unexpectedly, compare the source pictures again before adding more instructions. A basic file check is useful because it removes one avoidable uncertainty from that review.