Code Monkey home page Code Monkey logo

shrink-shrimp's Introduction

Shrink Shrimp

Batch shrink scanned PDFs, a Electron GUI wrapper for GhostScript

中文版说明点这里

logo

Showcase

showcase

Download

Current Version 0.1.0

Or visit Release Page.

Use

  1. Drag & Drop one or multiple PDFs to the Shrimp
  2. Wait for the process to finish
  3. Shrinked PDFs would be in the same directory with the prefix of shrink
  4. Click the shrimp icon at the bottom right to reset
  5. If you encounter errors, hover on the records to see details

Note: You would need to pre-install GhostScript on OSX and Ubuntu in order to use this app. You DO NOT have to pre-install GhostScript on Windows.

  • OSX: brew install ghostscript
  • Ubuntu: sudo apt-get install ghostscript (additional mirror may be required)

Develop

Assume you have node 10+ and npm installed

cd /to/some/dir/
git clone https://github.com/bclicn/shrink-shrimp.git

cd shrink-shrimp

// for chinese users
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org

npm install
npm start

Build

Follow the steps in Develop then

// on Windows 64bit
npm run build-win

// on OSX
npm run build-mac

// on Linux
npm run build-lin

Note: after building on Windows, you can download gs-926-win32-x64.zip, then copy gsdll64.dll and gs.exe to the directory of shrink_shrimp.exe

Bug

Please use Issue Tab if you encounter a bug.

License

MIT

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.