Metadata-Version: 2.0
Name: stitcher
Version: 0.0.1
Summary: Join Messenger conversation screenshots.
Home-page: https://github.com/gebn/stitcher
Author: George Brighton
Author-email: oss@gebn.co.uk
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: six (>=1.9.0)
Requires-Dist: Pillow

stitcher
========

.. image:: https://img.shields.io/pypi/status/stitcher.svg
   :target: https://pypi.python.org/pypi/stitcher
.. image:: https://img.shields.io/pypi/v/stitcher.svg
   :target: https://pypi.python.org/pypi/stitcher
.. image:: https://img.shields.io/pypi/pyversions/stitcher.svg
   :target: https://pypi.python.org/pypi/stitcher
.. image:: https://travis-ci.org/gebn/stitcher.svg?branch=master
   :target: https://travis-ci.org/gebn/stitcher
.. image:: https://coveralls.io/repos/github/gebn/stitcher/badge.svg?branch=master
   :target: https://coveralls.io/github/gebn/stitcher?branch=master
.. image:: https://landscape.io/github/gebn/stitcher/master/landscape.svg?style=flat
   :target: https://landscape.io/github/gebn/stitcher/master

Stitcher is a command-line utility for joining Messenger conversation screenshots.

Installation
------------

::

    $ pip install stitcher

Usage
-----

General usage:

::

    $ stitch <profile> <outfile> <images>...

Combine ``IMG_0001.PNG`` and ``IMG_0002.PNG`` taken on an iPhone 5S, saving the result to ``composition.png``:

::

    $ stitch IPHONE_5S composition.png IMG_0001.PNG IMG_0002.PNG IMG_0003.PNG

Combine all ``.png`` files in the present working directory using the profile for LG’s G3 phone, outputting to ``combined.png``:

::

    $ stitch LG_G3 combined.png *.png

Profiles
--------

Profiles define parameters used by Stitcher to join images. They are stored within the ``profiles`` directory, organised by device manufacturer.
The following options can be specified:

+----------------------------+------------------------------------------------------------------------------+------------------------------------+
| Name                       | Description                                                                  | Default                            |
+============================+==============================================================================+====================================+
| ``mode``                   | The image format                                                             | RGBA                               |
+----------------------------+------------------------------------------------------------------------------+------------------------------------+
| ``header_height``          | The number of pixels of vertical height to crop from the top of the image    | *Required*                         |
+----------------------------+------------------------------------------------------------------------------+------------------------------------+
| ``footer_height``          | The number of pixels of vertical height to crop from the bottom of the image | Same as ``header_height``          |
+----------------------------+------------------------------------------------------------------------------+------------------------------------+
| ``additional_message_gap`` | The vertical spacing between messages from the same sender                   | *Required*                         |
+----------------------------+------------------------------------------------------------------------------+------------------------------------+
| ``reply_message_gap``      | The vertical spacing between two messages sent by different participants     | Same as ``additional_message_gap`` |
+----------------------------+------------------------------------------------------------------------------+------------------------------------+

If you’d like to add a missing a profile for your device, create a new file if necessary, and add a dictionary with the device’s details. Please
consider contributing it in a pull request so others may benefit!


