Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/i-al-istannen/img-packing

Densely packs images into a multi-page PDF
https://github.com/i-al-istannen/img-packing

Last synced: 1 day ago
JSON representation

Densely packs images into a multi-page PDF

Awesome Lists containing this project

README

        



img-packing


You have lots of images, a printer and a budget? You need to somehow put
everything into a single pdf for printing, but do not want all that wasted
space? `img-packing` will layout images densely in a multi-page pdf to reduce
wasted space, even rotating images by 90° if that makes them fit better.
Recognizing that rotating random images might mess up the griddy look of your
pdf, you can disable this with the `--no-rotate` switch.

## Installation
Download a binary from the
[releases](https://github.com/I-Al-Istannen/img-packing/releases) page or build
from source using `cargo build --release`.

## Usage
```
A simple program to pack images into a PDF

Usage: img-packing [OPTIONS] ...

Arguments:
The output PDF file
... The images to pack. Can be a single image or a folder containing *only* images

Options:
--dpi The DPI to render the images at [default: 300]
--width The width of the paper in mm [default: 210.0]
--height The height of the paper in mm [default: 297.0]
--border The border width in mm [default: 3.0]
--margin The margin width in mm [default: 1.0]
--max-image-width The maximum width an image may have in mm
--max-image-height The maximum height an image may have in mm
--no-rotate Do not rotate images
-h, --help Print help
-V, --version Print version
```