Mit dem iPhone scannen, um zu installieren
Vorschau
The shortcut prompts you to select a photo.
It then takes the Date Taken information from the photo's Metadata, generates a timestamp, and overlays it on the original picture. It also allows you to adjust the opacity, scale (two finger pinch), rotation (again two fingers) and placement of the timestamp before saving it to your camera roll.
Neue Funktionen
Version 1.1
Added Variables to set Timestamp cropping to a percentage of the image size, in case of different JPEG resolution size. (Ie. Cropped images)
Was er macht
30 Aktionen-
CommentPhoto Time Stamp by Bob Orr 8/18/19 The shortcut prompts you to select a photo. Takes the Date Taken information from the photo's Metadata, generates a timestamp, and overlays it on the original picture. It also allows you to adjust the opacity, sca…
-
Select Photos
-
Set VariableImage1
-
Get Details of Images
-
CommentEven though the metadata switch is off in the next step, the original "Date Taken" shows up in the metadata of the resulting image. This is most likely because the shortcut gets "Image1" before the "Overlay Image" step.
-
Convert Image
-
Set VariableImage2
-
Get Details of Images
-
Calculate
-
Set VariableWidth1
-
Calculate
-
Set VariableWidth2
-
CommentAdded Variables to set Timestamp cropping to a percentage of the image size handed to the steps in case of different JPEG resolution size. (Ie. Cropped images)
-
Nothing
-
Get Variable
-
Get Details of Images
-
Calculate
-
Set VariableHeight1
-
Calculate
-
Set VariableHeight2
-
Nothing
-
Get Variable
-
Crop Image
-
CommentThe second crop is to get rid of some of the white space on the timestamp left from the first crop.
-
Crop Image
-
Set VariableTimeStamp1
-
Nothing
-
Get Variable
-
Overlay Image
-
Save to Photo Album
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/photos'
#define color blue
#define glyph camera
/*
Photo Time Stamp by Bob Orr
8/18/19
The shortcut prompts you to select a photo. Takes the Date Taken information from the photo's Metadata, generates a timestamp, and overlays it on the original picture. It also allows you to adjust the opacity, scale (two finger pinch), rotation (again two fingers) and placement of the timestamp before saving it to your camera roll.
*/
selectPhotos()
@Image1 = nil
getImageDetail(nil, "Date Taken")
/*
Even though the metadata switch is off in the next step, the original "Date Taken" shows up in the metadata of the resulting image.
This is most likely because the shortcut gets "Image1" before the "Overlay Image" step.
*/
convertImage(nil, "", 1, false)
@Image2 = nil
getImageDetail(nil, "Width")
@Width1 = nil * 0.3
@Width2 = nil * 1
// Added Variables to set Timestamp cropping to a percentage of the image size handed to the steps in case of different JPEG resolution size. (Ie. Cropped images)
nothing()
// TODO: Get Variable not supported: Assign variable here to '@Image2'.
getImageDetail(nil, "Height")
@Height1 = nil * 0.07000000000000003
@Height2 = nil * 0.25
nothing()
// TODO: Get Variable not supported: Assign variable here to '@Image2'.
cropImage(nil, @Width1, @Height1, "Top Left", "")
// The second crop is to get rid of some of the white space on the timestamp left from the first crop.
cropImage(nil, @Width2, @Height2)
@TimeStamp1 = nil
nothing()
// TODO: Get Variable not supported: Assign variable here to '@Image1'.
customImageOverlay(nil, @TimeStamp1)
savePhoto(nil)
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von drbobisin
Das gefällt dir vielleicht auch
Werbung