machin 0.5.1

Machin is a cli program that simplifies file conversions and batch processing. It's inspired from filter/map/reduce
docs.rs failed to build machin-0.5.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: machin-0.4.1

Machin

LICENSE Crates.io Version Minimum rustc version

Intro

Machin is a cli program that simplifies file conversions and batch processing. It's inspired from filter/map/reduce

Install on your system

clone the projet and install it with :

cargo install --path .

Some machmap examples

Give the list of supported conversion for an entry format :

machmap -s svg

Convert svg files to png, jpg :

ls *.svg | machmap -e png
ls *.svg | machmap -e jpg

Convert png files to jpg, avif, pdf :

ls *.png | machmap -e jpg
ls *.png | machmap -e avif
ls *.png | machmap -e pdf

Convert jpg file to png, avif, pdf :

ls *.jpg | machmap -e png
ls *.jpg | machmap -e avif
ls *.jpg | machmap -e pdf

Convert markdown to html

ls *.md | machmap -e html

Some machconvert examples

Apply a grayscale, a vertical flip and at last a 90 degree rotation of photo.jpg to prefix_photo.jpg

Order is important :

  1. On first, color option
  2. flip option (vertical or horizontal)
  3. rotation
ls *.png | machconvert -c grayscale -f vertical -r 90 -p prefix_
ls *.jpg | machconvert -c grayscale -f vertical -r 90 -p prefix_

Some machreduce examples

Concatenate images on same file :

ls *.png | machreduce -o result.png

Create pdf with images:

ls *.jpg | machreduce -o result.pdf

Create archiv (zip) with files:

ls *.png | machreduce -o archive.zip

Create one pdf with several pdfr

ls *.pdf | machreduce -o merge.pdf

Dev

Makefile inspire by https://git.sr.ht/~julienxx/castor/tree/master/item/Makefile

Publish

make cargo-publish