Metadata-Version: 2.4
Name: smalltown-boy-photo-tools
Version: 0.1.0
Summary: Compare dimensions and aspect ratios of two photos for a two-portrait workflow.
License-Expression: MIT
Project-URL: Portrait selection guide, https://smalltownboyai.app/blog/best-photos-for-smalltown-boy-ai-dance
Keywords: media,portrait comparison,inspection
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: Pillow>=10
Dynamic: license-file

Smalltown Boy Photo Tools
=========================

Compare the displayed width, height, orientation and reduced aspect ratio of two
local portraits. The command applies EXIF orientation before measuring the image,
so a phone JPEG saved sideways is counted in its displayed orientation. It reads
files locally and prints a JSON object with one record per input, in input order.

Command line
------------

With Python 3.9 or newer, install the distribution with
``python -m pip install smalltown-boy-photo-tools``. Then run:

.. code-block:: console

   smalltown-boy-photo-tools portrait-a.jpg portrait-b.jpg

For two images displayed at 900 by 1200 and 1200 by 900, the aspect ratios in
the report are 3:4 and 4:3. Identical dimensions do not guarantee identical
framing. Use the dimensions to plan your crop and inspect the subjects visually.
The output also contains the original path, so review it before sharing a report.

Python
------

.. code-block:: python

   from smalltown_boy_photo_tools import analyze

   for photo in analyze(["first.jpg", "second.jpg"])["photos"]:
       print(photo["path"], photo["width"], photo["height"], photo["aspect_ratio"])

If a command-line input is missing or unreadable the process exits with code 1.
The library surfaces Pillow and filesystem errors to the caller. Neither
interface changes the original files.

Choosing a pair
---------------

For a two-person dance, the
`Smalltown Boy AI portrait selection guide <https://smalltownboyai.app/blog/best-photos-for-smalltown-boy-ai-dance>`_
shows how framing and visibility affect the choice of two pictures. Use the
guide with the local measurements to decide which portraits to take into the
dance generator.
