GithubHelp home page GithubHelp logo

slidespeak / powerpoint-compressor Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 6.49 MB

๐Ÿ—œ๏ธ NodeJS CLI tool to compress PowerPoint files

Home Page: https://slidespeak.co/free-tools/compress-powerpoint-tool/

License: Apache License 2.0

JavaScript 100.00%
compress file-compression powerpoint pptx

powerpoint-compressor's Introduction

PowerPoint Compressor for NodeJS

gh-banner-compress-powerpoint

A CLI tool to compress PowerPoint files. This script compresses the size of your .pptx presentations, making them easier to store and share. Just run it, choose your file, and watch the tool compress it without losing quality.

Features

  • Go through all images and compress their file size All raster images are converted to JPG, excepted PNG images with transparency.
    Size is restricted to a maximum width or height of 2000 pixels.

  • Remove all videos (using a CLI flag) The videos are actually not entirely removed but rather replaced by a one black frame video placeholder.
    This helps simplify the implementation by avoiding having to parse traverse and update the XML content.
    In the output file, the video preview is preserved, but nothing happens if we click on the play button.

  • Remove embeded fonts

Setup

Using npm

npm install

or

Using Yarn

yarn install

Requirements

You need to have 7Zip installed because under the hood unzip is used to unarchive and archive the pptx files.

Usage

npm run start <INPUT_FILE_PATH> <OUTPUT_FILE_PATH>

or

yarn start <INPUT_FILE_PATH> <OUTPUT_FILE_PATH>

The processed file is written at the given <OUTPUT_FILE_PATH>.

Example:
npm run start --remove-videos ./examples/example.pptx ./examples/example-reduced.pptx
or
yarn start --remove-videos ./examples/example.pptx ./examples/example-reduced.pptx

Compression Options

  • --remove-videos Removes all videos.

  • --debug Duplicate and open the processed file after processing.
    This makes the feedback loop faster when developing.

License

Apache License 2.0: See LICENSE file

Author

Written and maintained by SlideSpeak.co

powerpoint-compressor's People

Contributors

kgoedecke avatar sasensi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.