Skip to main content

tinyoffice

Make your Office files tiny!

tinyoffice attemps to compresses and optionally convert the embedded image files in your Office files.

Installation

You can install tinyoffice from PyPi:

% pip install tinyoffice

NOTE: tinyoffice requires Pillow (PIL Fork) Pillow, which can have installation conflicts. If you experience any issues while installing tinyoffice, please follow the Pillow installation steps found here: https://pillow.readthedocs.io/en/stable/installation.html.

Usage

usage: tinyoffice [-h] [-r] [-c] [-v]
                  [-t .docx .pptx .xlsx [.docx .pptx .xlsx ...]] [--overwrite]
                  [-o OUTPUT] [-exts EXTENSIONS [EXTENSIONS ...]]
                  path

Make your Office files tiny!

positional arguments:
  path                  File or directory path.
                        If a file and recurse (-r/--recurse) is not set, only that file will be compressed.
                        If a directory and recurse is not set, only the top-level files in the directory will be compressed.
                        If recurse is set, everything at path and below will be compressed.

options:
  -h, --help            show this help message and exit
  -r, --recurse         Flag for if tinyoffice should recursively search for files. Default is False
  -c, --convert         Flag for if TIFF files should be converted to JPEGs. Default is False
  -v, --verbose         Flag for verbosity levels. Can be set multiple times, e.g., -vv, for increased verbosity
  -t .docx .pptx .xlsx [.docx .pptx .xlsx ...], --types .docx .pptx .xlsx [.docx .pptx .xlsx ...]
                        Filetype extensions to compress.
                        Default is .docx, .pptx, .xlsx
  --overwrite           Flag for if an existing file should be overwritten. Default is False
  -o OUTPUT, --output OUTPUT
                        Path for the output location.
  -exts EXTENSIONS [EXTENSIONS ...], --extensions EXTENSIONS [EXTENSIONS ...]
                        Image extensions to compress. Default will be only the extensions that are supported by Pillow on your system.
                        Should be ignored.

Metadata

Release files for tinyoffice 0.0.9

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

Source distribution (sdist)

Source distribution for tinyoffice 0.0.9
File Size Uploaded
tinyoffice-0.0.9.tar.gz 9.8 kB Details

Built distribution (wheel)

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

Total release size: 18.4 kB

Release files / tinyoffice-0.0.9.tar.gz

Download URL tinyoffice-0.0.9.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
449fa51963f68050759203939992923e9c1869fc66d3c8d81a3616619d27c2d4
BLAKE2b-256 checksum
How to use checksums
c2bd81b82a5dde8719d074c70c540d7652db99dc73ce6ce34c1d07a792c91610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / tinyoffice-0.0.9-py3-none-any.whl

Download URL tinyoffice-0.0.9-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0141c355b93509dbaab55aed1dd375a073d32da80ed0cda0fc473b1e69b6cb61
BLAKE2b-256 checksum
How to use checksums
cfb3bc1a15da38e42f3032b292b2aa8f5b42e0dff7f1b5ad18f386e005749095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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