Compresto Documentation
HomepagePricingChangelogDownload
  • 👋Welcome to Compresto
  • Guides
    • How to activate your license
    • How to compress video
    • How to compress image
    • How to compress gif
    • How to convert video to gif
    • Monitor a folder for automatic compression
    • Integration with Compresto
    • How to find your license key
    • How to reset your license
    • How to setup PDF compression
    • How to show confetti when compression finishes
    • How to resolve error "bad CPU type in executable" on macOS
  • Use cases
    • For Designers
    • For Developers
    • For Content Creators
    • For Digital Marketers
Powered by GitBook
On this page
  • Trigger Compresto via deep linking
  • File compression using deep linking
  • File importing using deep linking
  • Trigger Compresto via command line
  1. Guides

Integration with Compresto

Compresto supports deep linking, allowing you to integrate it into your workflow. Simply trigger a deep link to automatically launch Compresto and compress your files.

Trigger Compresto via deep linking

The deep link support these parameters:

  • quality . Possible values: highest, high, good, medium, acceptable . Default is high

    • For PDF, the param is pdfQuality which the possible values are: best , hight, balance, low

  • videoFormat . Possible values: same, mp4, webm . Default is same

  • imageFormat . Possible values: same, webp, jpg, png . Default is same

  • format. Default value is same . If videoFormat or imageFormat is missing, format parameter will be used

  • removeAudio . Possible values: true , false . Default is false

  • fileNameFormat to customise the output file name format

  • outputFolder or outputPath to customise the output folder. Default is same as input files.

  • removeInputFile for removing input files after compression

  • subfolderProcessing for including the files in subfolders recursively. Possible values: all, none, or a number to set the max depth

File compression using deep linking

The deeplink format is as follows:

compresto://open?path={path_to_your_file_1}|{path_to_your_file_2}
&[param1]=[value1]&[param2=[value2]

Each file path is divided by | character. Each param is divided by & character. Below are some example deeplinks

// compress a video
compresto://open?path=/Users/hieudinh/Desktop/video.mp4&quality=medium&videoFormat=mp4&removeAudio=true

// compress an image
compresto://open?path=/Users/hieudinh/Desktop/image.png&quality=medium&imageFormat=png

// compress video and image
compresto://open?path=/Users/hieudinh/Desktop/image.png|/Users/hieudinh/Desktop/video.mp4&quality=medium&imageFormat=png&videoFormat=mp4&removeAudio=true

File importing using deep linking

You can also import files into CompressX for customization before compressing. The deeplink format is as follows:

compresto://import?path={path_to_your_file_1}|{path_to_your_file_2}

Trigger Compresto via command line

In your favourite Terminal, you can trigger compression or importing by using the same deep link with open command.

// compression
open "compresto://open?path=/Users/hieudinh/Desktop/test1.mp4|/Users/hieudinh/Desktop/test2.mp4"

// import
open "compresto://import?path=/Users/hieudinh/Desktop/test1.mp4|/Users/hieudinh/Desktop/test2.mp4"

PreviousMonitor a folder for automatic compressionNextHow to find your license key

Last updated 3 months ago