A toy program for manipulating images based on conditional logic on a per-pixel basis.
poetry env activate
poetry env use python3.13
poetry install
poetry run pixeldition -hSwap green and blue in an image:
poetry run pixeldition pixeldition/test_images/test1.jpg --channel-swap g bUse 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 bInvert red, then swap blue and green:
poetry run pixeldition pixeldition/test_images/test1.jpg -ci r -cs b gPlace 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