Integration with CompressX

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

The deep link format is as follows:

compressx://open?path={path_to_your_file}

// examples
// version 1.1
compressx://open?path=file:///Users/hieudinh/Desktop/simple_app.mov
compressx://open?path=file:///Users/hieudinh/Desktop/image.png

// version 1.2
compressx://open?path=/Users/hieudinh/Desktop/simple_app.mov
compressx://open?path=/Users/hieudinh/Desktop/Screen Recording 2024-01-23 at 21.59.45.mov
compressx://open?path=/Users/hieudinh/Desktop/Screen%20Recording%202024-01-23%20at%2021.59.45.mov
compressx://open?path=/Users/hieudinh/Desktop/image.jpg

// version 1.5
compressx://open?path=/Users/hieudinh/Desktop/simple_app.mov&quality=high&videoFormat=mp4&removeAudio=true

// version 1.8
compressx://open?path=/Users/hieudinh/Desktop/image.jpg&quality=high&imageFormat=webp
  • For versions prior to 1.2, ensure that you include the "file://" prefix in your file path

  • Starting from version 1.2, CompressX functions with or without the "file://" prefix

  • Starting from version 1.5, CompressX supports these parameters in the deeplink

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

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

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

  • Starting from version 1.8, CompressX supports these parameters in the deeplink

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

  • If you don’t have any params above in the deeplink, the default settings will be used

Last updated