Skip to main content

Make your Office files tiny!

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tinyoffice-0.0.5.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

tinyoffice-0.0.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file tinyoffice-0.0.5.tar.gz.

File metadata

  • Download URL: tinyoffice-0.0.5.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for tinyoffice-0.0.5.tar.gz
Algorithm Hash digest
SHA256 45c04057fafad5879b6ffe57427b556508047c7617be2fad693ce18b08f1580b
MD5 46f3ac29ef6bc471fa0529103107daaa
BLAKE2b-256 6c00168699aae7c616d9c93f88377c5bc06185da8e40ebf72b52a19123e91e21

See more details on using hashes here.

File details

Details for the file tinyoffice-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tinyoffice-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for tinyoffice-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7a645e997f35497205f3621f7f8dad8204b459d4bf93720742d2877b3e77ebfb
MD5 adc98d662ca2b0e18563822ba8e41453
BLAKE2b-256 2901e9d0b5a96da84bc81f00946e8ba1ea862c43c2d94cbec3187b5c43feb92e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page