ShareShortcuts

Text above picture

primes
Fork “Text above picture”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so primes gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
72K
Saved
4
Actions
48
Category
Productivity
Version
1.1
Language
EN

deleted

What's New

Version 1.1

deleted

Version History
1.1 Sep 11, 2019

deleted

1.0 Dec 17, 2018

First release

What it does

48 actions
  1. Choose from Menu
    Where is your picture ?
  2. Choose from Menu
    Picture Library
  3. Select Photos
  4. Choose from Menu
    ICloud Drive
  5. Get File
  6. Set Variable
    Image
  7. Get Details of Images
  8. Ask for Input
    Your text:
  9. Set Variable
    Text input
  10. Comment
    Converting text into an image
  11. Split Text
  12. Number
  13. Set Variable
    Nb lines
  14. Get Variable
  15. Repeat with Each
  16. Count
  17. Calculate
  18. Round Number
  19. Calculate
  20. Set Variable
    Nb lines
  21. Get Variable
  22. Combine Text
  23. Set Variable
    text
  24. Number
  25. Calculate
  26. Calculate
  27. Text
  28. Make Rich Text from HTML
  29. Make PDF
  30. Get Images from Input
  31. Crop Image
  32. Comment
    Resizing the text image
  33. Get Variable
  34. Calculate
  35. Calculate
  36. Get Variable
  37. Resize Image
  38. Comment
    Merging the text image with the initial image
  39. List
  40. Combine Images
  41. Quick Look
  42. Choose from Menu
  43. Choose from Menu
    Save in library
  44. Save to Photo Album
  45. Choose from Menu
    Save in ICloud Drive
  46. Save File
  47. Choose from Menu
    Share
  48. Share

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/text'
#include 'actions/photos'
#define color darkblue
#define glyph textSymbol


menu "Where is your picture ?" {
item "Picture Library":
	selectPhotos()
item "ICloud Drive":
	getFile("")
}
@Image = nil
const ImageWidth = getImageDetail(nil, "Width")
prompt("Your text:")
@TextInput = nil
// Converting text into an image

const ScinderLeTexte = splitText(nil)
@NbLines = 0
// TODO: Get Variable not supported: Assign variable here to 'ScinderLeTexte'.

for _ in nil {
	count(nil, "Characters")
	round(0)
	@NbLines = nil + @NbLines
}
// TODO: Get Variable not supported: Assign variable here to 'ScinderLeTexte'.
joinText(nil, "<br>")
@text = nil
number(@NbLines)
const TextImageHeight = nil * 140
const RsultatDuCalcul = nil + 30
getRichTextFromHTML("")
makePDF(nil, false)
getImages(nil)
const ImageRecadre = cropImage(nil, 2500, RsultatDuCalcul, "Top Left")
// Resizing the text image

// TODO: Get Variable not supported: Assign variable here to 'ImageWidth'.
const ResizedTextImageHeight = nil / 2500
// TODO: Get Variable not supported: Assign variable here to 'ImageRecadre'.
resizeImage(nil, ImageWidth, ResizedTextImageHeight)
// Merging the text image with the initial image

list(, @Image)
rawAction("is.workflow.actions.image.combine", {
	"WFImageCombineDirection": "Vertical",
	"WFImageCombineMode": "Side-by-Side"
})
quicklook(nil)

menu nil {
item "Save in library":
	savePhoto(nil)
item "Save in ICloud Drive":
	saveFilePrompt(nil)
item "Share":
	share(nil)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement