Metadata-Version: 2.1
Name: img2array
Version: 1.0.0
Summary: Prints the pixels of an image into an array of RGB values, that can be easily exported to embedded applications.
Project-URL: Homepage, https://codeberg.org/akselmo/img2array
Project-URL: Bug Tracker, https://codeberg.org/akselmo/img2array/issues
Author-email: Akseli Lahtinen <akselmo@akselmo.dev>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: pillow==9.4.0
Description-Content-Type: text/markdown

# img2array

Prints the pixels of an image into an array of RGB values.
This can be copied easily to other applications, such as embedded apps.

# Commands

-h, --help    :  Help text  
-i, --image   :  Image file path  
-p, --prefix  :  Prefix for the item, like "colorFunc\("  
-P, --postfix :  Postfix for the item, like "\)"  
-f, --format  :  Format of the color, defaults to RGB. Possible values: RGB, RGBA, Hex, HexAlpha  

# Example

`img2array -i file.png --prefix=coolFunction\( --postfix=\) --format=RGB`

**Note**: the \ before () may be required or not depending on the shell you're using.

This should print an array version of the image like

```
{
    {coolFunction(200,200,200), coolFunction(123,123,123)},
    {coolFunction(111,111,111), coolFunction(41,0,12)}
}
```

You can then easily copy-paste this to your applications.