Skip to main content

d2f2 2.1.3

d2f2 is a tool written in Python to convert image folders into files.

Installation

You can install (and update) d2f2 from PyPI via the command line

pip install d2f2 -U

or use one of the standalone versions (see below).

Usage

Operation modes

d2f2 offers two modes of operation: "single" and "batch".

Single mode

The standard mode, converts each given directory into a file.

d2f2 /a/path /another/path ...

Batch mode

Useful for converting big batches of folders, this mode converts each subdirectory within the given directories into a file. To use it, add the -b/--batch option to the command:

d2f2 -b /a/path /another/path ...

Output format

By default, d2f2 saves files in the PDF format. If you want to use another supported format, use the -f/--format option:

d2f2 /a/path ... -f FORMAT

Currently, there are 2 supported formats (with more to be added in the future). Use the appropriate format as the FORMAT parameter:

  • [PDF] - Portable Document Format (default)
  • [CBZ] - Comic Book Format, ZIP-compressed

Output path

By standard, d2f2 saves files to the current directory. If you want another output path, use the -o/--output option:

d2f2 /a/path ... -o /an/output/path 

Sorting mode

By default, d2f2 sorts the images in alphanumeric, ascending order (A-Z). If you want to use another sorting mode you can specify one by using the -s/--sort option:

d2f2 /a/path ... -s MODE

Currently, there are 6 sorting modes available. Use the corresponding number from the following list as the MODE parameter:

  • [ 1] Alphanumeric, ascending (default)
  • [-1] Alphanumeric, descending
  • [ 2] Last time modified, oldest first
  • [-2] Last time modified, newest first
  • [ 3] Time of creation / metadata change, oldest first
  • [-3] Time of creation / metadata change, newest first

Shell

d2f2 offers an interactive shell including all functions of the normal d2f2 CLI tool.

Standalone versions for the shell are available for Windows and Linux (see Releases)

You can also start the shell from the command line:

d2f2 --shell

TODO

  • More output formats (EPUB, MOBI)
  • Custom order for images
  • Modify names of output files
  • Standalone GUI client

Disclaimer

This tool uses the PyMuPDF library, which provides the core functionality of inserting images into PDF files. According to its licensing terms, this project is released under the AGPLv3 license (for more information, see LICENSE)

Release files for d2f2 2.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for d2f2 2.1.3
File Size Uploaded
d2f2-2.1.3.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for d2f2 2.1.3
File Interpreter ABI Platform
d2f2-2.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / d2f2-2.1.3.tar.gz

Download URL d2f2-2.1.3.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
be7d7db8ac58fe2be2f87b1362427cf0a454d25871546d222f90126da5ca0743
BLAKE2b-256 checksum
How to use checksums
b9beb54ac4f8a3f686bb1ca5f0fe31dfa6e71439e1726b643ffa00c1387ea9b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / d2f2-2.1.3-py3-none-any.whl

Download URL d2f2-2.1.3-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26315aec00e7fc5468a4a1b333fa6dde26ce9cd04e50865bbb812ceb1b2fa50d
BLAKE2b-256 checksum
How to use checksums
788a4cc803c57513e4c4226b705c2389d71c8ce16a0db8b2d50f7523500f8375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page