MCPcopy Create free account
hub / github.com/bexxmodd/paleatra

github.com/bexxmodd/paleatra @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 74 edges 9 files 18 documented · 41% updated 4y ago★ 32

Browse by type

Functions 36 Types & classes 8
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Command-Line program that takes an image and produces the copy of the image with a thin frame and palette made of the 10 most frequent colors.

Current version = v.0.0.1

How it works

Currently, the program can be used only through the command line. However, the next step will be to implement a Graphical User Interface to opening image and indicating where to save

You have to clone the repo on your local machine and run cargo with two arguments:

  • path to the original file.
  • path where to store the copy of it.

Both paths should include file name and extension. The extension should be of image type (e.i jpg, png, etc.)

Example:

cargo run img/rickmorty.jpg img/results/rickmorty_cpy.jpg

output:

rickmorty

You can check other examples in the img/results

TODO

  • [x] Launch alpha version

  • [x] Write automated tests

  • [ ] Expend program to take number of palette boxes as argument

  • [ ] Create a GUI for the program

  • [ ] Give option to have palette appended below, right, left, or top of the original image

  • [ ] Add new features


Follow Me on Social Media

<a href="https://www.twitter.com/bexxmodd">
    <img alt="twitter" src="https://i.imgur.com/fFlVB1c.png" height=40>
</a>
<a href="https://www.linkedin.com/in/bmodebadze">
    <img alt="linkedin" src="https://i.imgur.com/wcvwfoZ.png" height=40>
</a>
<a href="https://www.github.com/bexxmodd">
    <img alt="github" src="https://i.imgur.com/gnDF5oQ.png" height=40>
</a>

Repo is distributed under the MIT license. Please see the LICENSE for more information.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 22
Function 14
Class 5
Interface 2
Enum 1

Languages

Rust100%

Modules by API surface

src/picture.rs12 symbols
src/colors.rs9 symbols
src/utils.rs7 symbols
tests/picture_test.rs5 symbols
tests/colors_test.rs4 symbols
src/filters.rs3 symbols
tests/utils_test.rs2 symbols
src/main.rs2 symbols

For agents

$ claude mcp add paleatra \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page