ShareShortcuts

Media Utilities

Convert Image formats, upscale/downscale images, and more, all in one shortcut!

omegabird113
Fazer fork de “Media Utilities”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que omegabird113 receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
30K
Salvo
2
Ações
134
Categoria
Photos and videos
Versão
1.0
Idioma
EN

Pré-visualização

Convert Image formats, upscale/downscale images, and more, all in one shortcut!

Note: It requires Omega’s Dev Tools.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 20 de set de 2023

First release

O que ele faz

134 ações
  1. Dictionary
  2. If
  3. Stop and Output
  4. Run Shortcut
    Omega’s Dev Tools
  5. Choose from Menu
    Select the category of what you'd like to do:
  6. Choose from Menu
    Convert media to another format
  7. Choose from Menu
    Select the conversion to be made:
  8. Choose from Menu
    Video To Audio
  9. Select Photos
  10. Encode Media
  11. Set Variable
    ConRES
  12. Choose from Menu
    PDF to Photo
  13. Select File
  14. Make Image from PDF Page
  15. Set Variable
    ConRES
  16. Choose from Menu
    Photo to PDF
  17. Select Photos
  18. Make PDF
  19. Set Variable
    ConRES
  20. Choose from Menu
    GIF to Video
  21. Select File
  22. Make Video From GIF
  23. Set Variable
    ConRES
  24. Choose from Menu
    Video to GIF
  25. Select Photos
  26. Make GIF
  27. Choose from Menu
    Photo to Photo (Converts to another photo format)
  28. Select Photos
  29. Convert Image
  30. Set Variable
    ConRES
  31. Choose from Menu
    Text To Hash
  32. Ask for Input
    Enter text to be converted:
  33. Generate Hash
  34. Set Variable
    ConRES
  35. Choose from Menu
    Back
  36. Run Shortcut
    Media Utilities
  37. Choose from Menu
    Cancel
  38. Stop and Output
  39. Random Number
  40. Save File
  41. Quick Look
  42. Choose from Menu
    Image Utilities
  43. Choose from Menu
    What would you like to do with your image?
  44. Choose from Menu
    Resize Image (Upscale/Downscale image)
  45. Select Photos
  46. Set Variable
    inProgressImg
  47. Resize Image
  48. Set Variable
    imgRES
  49. Choose from Menu
    Flip Image(s)
  50. Select Photos
  51. Set Variable
    inProgressImg
  52. Flip Image
  53. Set Variable
    imgRES
  54. Choose from Menu
    Rotate Image/Video(s)
  55. Select Photos
  56. Set Variable
    inProgressImg
  57. Rotate Media
  58. Set Variable
    imgRES
  59. Choose from Menu
    Blur Image(s)
  60. Select Photos
  61. Set Variable
    inProgressImg
  62. Blur Images
    com.sindresorhus.Actions
  63. Set Variable
    imgRES
  64. Choose from Menu
    Remove Background
  65. Select Photos
  66. Set Variable
    inProgressImg
  67. Remove Image Background
  68. Set Variable
    imgRES
  69. Choose from Menu
    Overlay Image
  70. Select Photos
  71. Select Photos
  72. Overlay Image
  73. Set Variable
    imgRES
  74. Choose from Menu
    Crop Image
  75. Select Photos
  76. Set Variable
    inProgressImg
  77. Crop Image
  78. Set Variable
    imgRES
  79. Choose from Menu
    Get average color of image
  80. Select Photos
  81. Set Variable
    inProgressImg
  82. Get Average Color Of Image
    com.sindresorhus.Actions
  83. Create Color Image
    com.sindresorhus.Actions
  84. Set Variable
    imgRES
  85. Choose from Menu
    Extract Text from Image
  86. Select Photos
  87. Set Variable
    inProgressImg
  88. Extract Text from Image
  89. Set Variable
    imgRES
  90. Choose from Menu
    Get Image Details
  91. Select Photos
  92. Get Details of Images
  93. Get Details of Images
  94. Get Details of Images
  95. Get Details of Images
  96. Get Details of Images
  97. Get Details of Images
  98. Get Details of Images
  99. Text
  100. Set Variable
    imgRES
  101. Choose from Menu
    Back
  102. Run Shortcut
    Media Utilities
  103. Choose from Menu
    Cancel
  104. Stop and Output
  105. Random Number
  106. Save File
  107. Quick Look
  108. Choose from Menu
    Reincode Media
  109. Select Photos
  110. Encode Media
  111. Quick Look
  112. Choose from Menu
    Manage .txt files
  113. Choose from Menu
    Which would you like to do?
  114. Choose from Menu
    Craete a .txt file
  115. Ask for Input
    What’s the file name you want to put it in?
  116. Ask for Input
    What text would you like to save?
  117. Set Name
  118. Save File
  119. Choose from Menu
    Edit a .txt file
  120. Select File
  121. Ask for Input
    What text do you want in this file?
  122. Overwrite File
    com.sindresorhus.Actions
  123. Choose from Menu
    Back
  124. Run Shortcut
    Media Utilities
  125. Choose from Menu
    Cancel
  126. Stop and Output
  127. Choose from Menu
    Exit
  128. Stop and Output
  129. Choose from Menu
    Would you like to run this again?
  130. Choose from Menu
    Yes
  131. Run Shortcut
    Media Utilities
  132. Stop and Output
  133. Choose from Menu
    No
  134. Stop and Output

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#include 'actions/photos'
#define color blue
#define glyph clipboard

const odvtInputDictionary = {
	"allowDvToolUpdates": false,
	"currentVer": "1.1.1",
	"dev": "Omegabird113",
	"input": "checkForUpdates",
	"routinehubID": "16564",
	"shortcutName": "Media Utilities"
}

if ShortcutInput == "outputUpdateInfo" {
	output(odvtInputDictionary)
}
runSelf(odvtInputDictionary)

menu "Select the category of what you'd like to do:" {
item "Convert media to another format":
	menu "Select the conversion to be made:" {
	item "Video To Audio":
		const Photos = selectPhotos()
		encodeAudio(Photos, Ask)
		@ConRES
	item "PDF to Photo":
		const File = selectFile()
		makeImageFromPDFPage(File)
		@ConRES
	item "Photo to PDF":
		const Photos1 = selectPhotos()
		makePDF(Photos1)
		@ConRES
	item "GIF to Video":
		const File1 = selectFile()
		makeVideoFromGIF(File1)
		@ConRES
	item "Video to GIF":
		const Photos2 = selectPhotos(false)
		makeGIF(Photos2, Ask)
	item "Photo to Photo (Converts to another photo format)":
		const Photos3 = selectPhotos()
		convertImage(Photos3, Ask)
		@ConRES
	item "Text To Hash":
		const ProvidedInput = prompt("Enter text to be converted:")
		hash(ProvidedInput, Ask)
		@ConRES
	item "Back":
		runSelf()
	item "Cancel":
		output("Ended Early")
	}
	randomNumber(0, 1024576)
	saveFile("{}-inUse", @ConRES, true)
	quicklook(@ConRES)
item "Image Utilities":
	menu "What would you like to do with your image?" {
	item "Resize Image (Upscale/Downscale image)":
		selectPhotos(false)
		@inProgressImg
		resizeImageByPercent(@inProgressImg, "")
		@imgRES
	item "Flip Image(s)":
		selectPhotos(true)
		@inProgressImg
		flipImage(@inProgressImg, Ask)
		@imgRES
	item "Rotate Image/Video(s)":
		selectPhotos(true)
		@inProgressImg
		rotateMedia(@inProgressImg, Ask)
		@imgRES
	item "Blur Image(s)":
		selectPhotos(true)
		@inProgressImg
		rawAction("com.sindresorhus.Actions.BlurImages", {
			"AppIntentDescriptor": "",
			"amount": "Ask",
			"images": "@inProgressImg"
		})
		@imgRES
	item "Remove Background":
		selectPhotos(true)
		@inProgressImg
		removeBackground(@inProgressImg, Ask)
		@imgRES
	item "Overlay Image":
		const Photos5 = selectPhotos()
		const Photos4 = selectPhotos()
		customImageOverlay(Photos4, Photos5)
		@imgRES
	item "Crop Image":
		selectPhotos()
		@inProgressImg
		cropImage(@inProgressImg, Ask, Ask, Ask)
		@imgRES
	item "Get average color of image":
		selectPhotos()
		@inProgressImg
		rawAction("com.sindresorhus.Actions.GetAverageColorOfImage", {
			"AppIntentDescriptor": "",
			"image": "@inProgressImg"
		})
		rawAction("com.sindresorhus.Actions.CreateColorImageIntent", {
			"AppIntentDescriptor": "",
			"color": "{}",
			"height": "768",
			"opacity": "",
			"width": "768"
		})
		@imgRES
	item "Extract Text from Image":
		selectPhotos(false)
		@inProgressImg
		extractImageText(@inProgressImg)
		@imgRES
	item "Get Image Details":
		const Photos6 = selectPhotos()
		getImageDetail(Photos6, "Width")
		getImageDetail(Photos6, "Height")
		getImageDetail(Photos6, "Date Taken")
		getImageDetail(Photos6, "Location")
		getImageDetail(Photos6, "Duration")
		getImageDetail(Photos6, "Frame Rate")
		getImageDetail(Photos6, "Media Type")
		@imgRES = "-- Basic Info --\nName: {Photos6}\nWidth: {} & Height: {}\nDate Taken: {}\nLocation: {}\n\n-- Video Info --\nDuration: {}\nFrame Rate: {}\n\n-- More Info --\nMedia Type: {}"
	item "Back":
		runSelf()
	item "Cancel":
		output("Ended Early")
	}
	randomNumber(0, 1024576)
	saveFile("{}-inUse", @imgRES, true)
	quicklook(@imgRES)
item "Reincode Media":
	const Photos7 = selectPhotos(false)
	const EncodedMedia = setMetadata(Photos7, Ask, Ask)
	quicklook(EncodedMedia)
item "Manage .txt files":
	menu "Which would you like to do?" {
	item "Craete a .txt file":
		const Filename = prompt("What’s the file name you want to put it in?")
		const Text = prompt("What text would you like to save?")
		const RenamedItem = setName(Text, Filename)
		saveFilePrompt(RenamedItem)
	item "Edit a .txt file":
		const File2 = selectFile()
		const ProvidedInput1 = prompt("What text do you want in this file?")
		rawAction("com.sindresorhus.Actions.OverwriteFile", {
			"AppIntentDescriptor": "",
			"destination": "File2",
			"source": "ProvidedInput1"
		})
	item "Back":
		runSelf()
	item "Cancel":
		output("Ended Early")
	}
item "Exit":
	output("Ended Early")
}

menu "Would you like to run this again?" {
item "Yes":
	runSelf()
	output()
item "No":
	output("Success")
}
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de omegabird113

Ver tudo

Você também pode gostar

Ver tudo
Publicidade