Skip to main content

Trigger Compresto via deep linking

The deep link support these parameters:
Any parameter you leave out uses the value from your in-app settings.
  • quality . Possible values: highest, high, good, medium, acceptable
    • For PDF, the param is pdfQuality which the possible values are: best , high, balance, low
    • For EPUB, the param is epubQuality which the possible values are: best , high, balance, low. If it’s missing, quality is used
  • videoFormat . Possible values: same, mp4, webm, mov, gif, mp3
  • imageFormat . Possible values: same, webp, jpg, png, avif
  • format. If videoFormat or imageFormat is missing, format parameter will be used
  • removeAudio . Possible values: true , false
  • fileNameFormat to customise the output file name format. It is appended to the original file name. Supported tokens:
    • {timestamp} - Current unix timestamp
    • {datetime} - Current date and time in yyyy-MM-dd'T'HHmmss format
    • {date} - Current date in yyyy-MM-dd format
    • {time} - Current time in HHmmss format
    • {quality} - Quality of the output file
    • {resolution} - Resolution of the output file
  • outputFileName to set an explicit output file name (base name only, without extension). Overrides fileNameFormat. When multiple files are processed, a number is appended to avoid collisions (e.g. name, name 1, name 2)
  • outputFolder, outputPath, or outputDirectory to customise the output folder
  • 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:
Each file path is divided by | character. Each param is divided by & character. Below are some example deeplinks

Output file name results

fileNameFormat is appended to the original file name, while outputFileName replaces it entirely. When both are provided, outputFileName takes precedence and fileNameFormat is ignored. Given an input file video.mp4, here are the resulting output file names: The extension follows the chosen videoFormat / imageFormat (or stays the same as the input when same).

File importing using deep linking

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

Trigger Compresto via command line

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