Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/i-al-istannen/img-packing
- Owner: I-Al-Istannen
- Created: 2024-06-23T20:24:41.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-07-06T20:50:49.000Z (4 months ago)
- Last Synced: 2024-07-06T21:47:45.102Z (4 months ago)
- Language: Rust
- Size: 229 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 PDFUsage: img-packing [OPTIONS] ...
Arguments:
The output PDF file
... The images to pack. Can be a single image or a folder containing *only* imagesOptions:
--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
```