Skip to content

Instantly share code, notes, and snippets.

@xbdmHQ
Created May 19, 2023 02:14
Show Gist options
  • Save xbdmHQ/fdb59113fc9b5cc50651a766a5f82b66 to your computer and use it in GitHub Desktop.
Save xbdmHQ/fdb59113fc9b5cc50651a766a5f82b66 to your computer and use it in GitHub Desktop.
How to make your own ShareX iOS Shortcut Script

Creating an iOS shortcut script for ShareX image hosting involves the following steps:

  1. Open the Shortcuts app on your iPhone or iPad.

  2. Tap on "Create Shortcut" to start a new shortcut.

  3. Search for the "URL" action and add it to your shortcut.

  4. In the URL action, enter the URL for your ShareX image hosting site with the necessary parameters for uploading an image. For example, if your ShareX image hosting site uses the API endpoint "https://example.com/api/upload", you would enter the following in the URL field: https://example.com/api/upload?url=[image].

  5. Add the "Get Images from Album" action to your shortcut.

  6. Add the "Get Details of Images" action to your shortcut and select "Width" and "Height".

  7. Add the "Get Variable" action to your shortcut and choose "Width" and "Height" as inputs.

  8. Add the "Text" action to your shortcut and enter the following text: [img width=$Width height=$Height].

  9. Add the "Combine Text" action to your shortcut and select the "URL" and "Text" variables as inputs.

  10. Add the "Copy to Clipboard" action to your shortcut and choose the "Combine Text" variable as its input.

  11. Save the shortcut and give it a name and a custom icon if desired.

  12. With this shortcut script, you can easily upload and share images to your ShareX image hosting site directly from your iPhone or iPad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment