Skip to content

This quartz filter compresses the JPEG in a PDF, while maintaining usable resolution

License

Notifications You must be signed in to change notification settings

superman-lopez/compressjpeginpreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

compressjpeginpreview

This quartz filter compresses the JPEG in a PDF, while maintaining usable resolution. The purpose of this quartz filter is to use it with Apple's Preview.app to quickly reduce the file size of images in PDF's while maintaining legibility. macOS does have a built-in filter called "Reduce File Size" that has the same purpose, however this filter is too aggressive and converts images to a resolution that is too low.

Install

To install this filter for the currently logged-in user, run the below command in Terminal:

mkdir -p ~/Library/Filters/ && curl -o ~/Library/Filters/Compress\ Images\ in\ PDF.qfilter https://raw.githubusercontent.com/superman-lopez/compressjpeginpreview/master/Compress%20Images%20in%20PDF.qfilter

Usage

After this the filter can be used in Preview.app (and other apps that support quartz filters).

  1. Open the PDF in Preview.app
  2. Select File and Export...
  3. Choose Format to be PDF
  4. Choose Quartz Filter to Compress Images in PDF
  5. Choose your prefered destination and click Save

Uninstall

To uninstall simply run:

rm ~/Library/Filters/Compress\ Images\ in\ PDF.qfilter

About

This quartz filter compresses the JPEG in a PDF, while maintaining usable resolution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages