ShareShortcuts

Photo Time Stamp

The shortcut prompts you to select a photo

drbobisin
Создать форк «Photo Time Stamp»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы drbobisin получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
68K
Сохранено
1
Действия
30
Категория
Photos and videos
Версия
1.1
Язык
EN

Просмотр

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.

Что нового

Версия 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)

История версий
1.1 19 авг 2019 г.

Added Variables to set Timestamp cropping to a percentage of the image size, in case of different JPEG resolution size. (Ie. Cropped images)

1.0 19 авг 2019 г.

First release

Что делает

Действий: 30
  1. Comment
    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, sca…
  2. Select Photos
  3. Set Variable
    Image1
  4. Get Details of Images
  5. Comment
    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.
  6. Convert Image
  7. Set Variable
    Image2
  8. Get Details of Images
  9. Calculate
  10. Set Variable
    Width1
  11. Calculate
  12. Set Variable
    Width2
  13. Comment
    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)
  14. Nothing
  15. Get Variable
  16. Get Details of Images
  17. Calculate
  18. Set Variable
    Height1
  19. Calculate
  20. Set Variable
    Height2
  21. Nothing
  22. Get Variable
  23. Crop Image
  24. Comment
    The second crop is to get rid of some of the white space on the timestamp left from the first crop.
  25. Crop Image
  26. Set Variable
    TimeStamp1
  27. Nothing
  28. Get Variable
  29. Overlay Image
  30. Save to Photo Album

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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)
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от drbobisin

См. все

Вам также может понравиться

См. все
Реклама