deleted
What's New
Version 1.1
deleted
What it does
48 actions-
Choose from MenuWhere is your picture ?
-
Choose from MenuPicture Library
-
Select Photos
-
Choose from MenuICloud Drive
-
Get File
-
Set VariableImage
-
Get Details of Images
-
Ask for InputYour text:
-
Set VariableText input
-
CommentConverting text into an image
-
Split Text
-
Number
-
Set VariableNb lines
-
Get Variable
-
Repeat with Each
-
Count
-
Calculate
-
Round Number
-
Calculate
-
Set VariableNb lines
-
Get Variable
-
Combine Text
-
Set Variabletext
-
Number
-
Calculate
-
Calculate
-
Text
-
Make Rich Text from HTML
-
Make PDF
-
Get Images from Input
-
Crop Image
-
CommentResizing the text image
-
Get Variable
-
Calculate
-
Calculate
-
Get Variable
-
Resize Image
-
CommentMerging the text image with the initial image
-
List
-
Combine Images
-
Quick Look
-
Choose from Menu
-
Choose from MenuSave in library
-
Save to Photo Album
-
Choose from MenuSave in ICloud Drive
-
Save File
-
Choose from MenuShare
-
Share
View as code
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
Advertisement