Skip to content

redactedaccount/pixeldition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixeldition

A toy program for manipulating images based on conditional logic on a per-pixel basis.

Setup

poetry env activate 
poetry env use python3.13
poetry install
poetry run pixeldition -h

Example Usage

Swap green and blue in an image:

poetry run pixeldition pixeldition/test_images/test1.jpg --channel-swap g b

Use Image Magick to resize an image, then pipe it into pixeldition to swap the channels:

magick pixeldition/test_images/test1.jpg -resize 50% - | poetry run pixeldition /dev/stdin --channel-swap g b

Invert red, then swap blue and green:

poetry run pixeldition pixeldition/test_images/test1.jpg -ci r -cs b g

Using the Makefile

Place any images you want to batch-convert into an images/ directory, set the transformation with the 'trans' variable. For example, to invert the colour red, invoke like this:

make -e trans='-ci r' -j batch

About

A toy program for manipulating images based on conditional logic on a per-pixel basis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors