Metadata-Version: 2.4
Name: picvane-image-tools
Version: 0.1.0
Summary: Show a compact palette of common image colors for a photo editing workflow.
License-Expression: MIT
Project-URL: Homepage, https://picvane.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package
Keywords: media,image palette,inspection
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: Pillow>=10
Dynamic: license-file

PicVane — Image Palette Tools
=============================

Show a compact palette of common image colors for a photo editing workflow.

This tool works with local files and prints a JSON report. It does not upload
files, connect to PicVane, or generate media. Use the browser-based service
separately at `PicVane <https://picvane.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_.

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

Python 3.9 or later is required. Pillow is installed as a dependency.

.. code-block:: bash

   pip install picvane-image-tools

Usage
-----

.. code-block:: bash

   picvane-image-tools image.png

The command prints JSON to standard output. If a file cannot be read, it prints
an error and returns a nonzero exit code. Input files are not modified.

What the report means
---------------------

The palette is approximate: the image is reduced to at most 256 pixels per side and RGB channels are grouped in steps of 16. Transparency is not separately reported.

Example report
--------------

For a small example file, output can look like this; actual values vary with
the input:

.. code-block:: json

   {"path": "image.png", "sample_pixels": 200, "colors": [{"hex": "#f00000", "fraction": 1.0}]}

A color fraction is the share of the reduced sample in that color bin. Colors are approximations rather than an exact palette.

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

.. code-block:: python

   from picvane_image_tools import analyze

   report = analyze("image.png")
   print(report)

The function reads the local file and returns a dictionary. File and parsing
errors are raised to the caller.

Common questions
----------------

**Does the package generate media?**
   No. It analyzes local files; generation is a separate website workflow.

**Does it upload my files?**
   No. The tool performs its inspection locally. A website upload, if you choose
   to make one, is a separate action.

**Does the report guarantee website or model compatibility?**
   No. Check the website's current requirements for the chosen workflow.

Workflow
--------

1. Inspect your local media with the command above.
2. Review the report and decide which asset to use.
3. Open `PicVane <https://picvane.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_
   and follow the available workflow on the website.

Available upload formats, settings and credit costs depend on the selected
website workflow. This package does not validate those requirements.

License
-------

MIT License.
