Metadata-Version: 2.4
Name: imagetovideoai-tools
Version: 0.1.1
Summary: Inspect local images before using them in image-to-video workflows
License-Expression: MIT
Project-URL: Homepage, https://imagetovideoai.tools/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package
Keywords: image to video,image metadata,image inspection
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: Pillow>=10
Dynamic: license-file

Image to Video AI Tools
=======================

Inspect a local image before using it in an image-to-video workflow. This
Python package reports useful file and image details so you can check your
starting material before choosing settings in an AI video generator.

* Read the image format, width and height.
* See the simplified aspect ratio, color mode and file size.
* Inspect one or several local images from the command line.
* Return results as JSON or use the inspection function in Python.
* Keep inspection local: the package does not upload images or generate video.

For browser-based AI video creation, visit `Image to Video AI
<https://imagetovideoai.tools/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_.

When is this useful?
--------------------

* **Preparing a starting frame:** Check the dimensions and aspect ratio of a
  photo or illustration before using it as a reference image.
* **Comparing assets:** Inspect several images to see how their dimensions and
  file sizes differ before choosing one for a workflow.
* **Automating a local workflow:** Read image details from Python or process
  command-line JSON output in another tool.

Requirements and installation
-----------------------------

Python 3.9 or newer is required. Installing the package also installs Pillow,
which handles image reading.

.. code-block:: bash

   pip install imagetovideoai-tools

Inspect an image
----------------

Pass a local file path to the command:

.. code-block:: bash

   imagetovideoai-inspect photo.jpg

For example, a 1920 × 1080 JPEG might produce a report like this (the file
size depends on the image):

.. code-block:: text

   path: photo.jpg | format: JPEG | width: 1920 | height: 1080 | aspect_ratio: 16:9 | mode: RGB | size_bytes: 245000

The aspect ratio is simplified from the image dimensions. Where an image has
EXIF orientation information, the reported width and height reflect its
orientation. The command reads the image; it does not resize or modify it.

Inspect multiple images or use JSON
-----------------------------------

List multiple file paths to inspect them in one command:

.. code-block:: bash

   imagetovideoai-inspect landscape.jpg portrait.png

Add ``--json`` for a machine-readable array:

.. code-block:: bash

   imagetovideoai-inspect photo.jpg --json

Example output:

.. code-block:: json

   [
     {
       "path": "photo.jpg",
       "format": "JPEG",
       "width": 1920,
       "height": 1080,
       "aspect_ratio": "16:9",
       "mode": "RGB",
       "size_bytes": 245000
     }
   ]

If a file cannot be read, the command reports an error on standard error and
returns a nonzero exit code. When inspecting multiple files it still reports
any readable images.

Use from Python
---------------

.. code-block:: python

   from imagetovideoai_tools import inspect_image

   image = inspect_image("photo.jpg")
   print(f"Dimensions: {image['width']} x {image['height']}")
   print(f"Aspect ratio: {image['aspect_ratio']}")
   print(f"Format: {image['format']}")

The function returns a dictionary. File and image-reading errors are raised to
the caller, so applications can handle them as appropriate.

From image to video
-------------------

1. Inspect your local image and note its dimensions and aspect ratio.
2. Open `Image to Video AI
   <https://imagetovideoai.tools/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_.
3. Choose an image-to-video workflow and upload your starting image on the
   website.
4. Describe the desired motion, choose the available model and settings, and
   review the generated result on the website.

Generation happens on the website, not inside this package. Available models,
settings, image requirements and credit costs depend on the selected workflow;
check the website before generating.

Frequently asked questions
--------------------------

**Does this package generate an AI video?**
   No. It inspects image metadata locally. The website offers a separate
   browser-based generation workflow.

**Are my images uploaded when I run the command?**
   No. The inspection tool reads local files. Uploading an image on the website
   is a separate action.

**Does it check whether my image meets every model's requirements?**
   No. The report is informational and does not validate model-specific
   restrictions. Image format support also depends on Pillow.

**Can I use it for images other than photographs?**
   Yes. Pillow can inspect supported image formats regardless of whether the
   image is a photo, illustration or other visual asset.

License
-------

MIT License.
