1,044 bytes added
, 9 January
<pre class="header-style">This trigger fires when a photo is taken with the device camera.</pre>
''' Options '''
No configuration options. The trigger fires for any photo capture.
''' Magic Text '''
When this trigger fires, the following values are available via magic text:
* {photo_file_path}
* {photo_uri}
''' Examples '''
''Example 1: Log each photo capture''
<pre class="trigger-style">Triggers
Photo Taken</pre>
<pre class="action-style">Actions
Write to File - Append "Photo saved at {photo_file_path}" to photo_log.txt
Display Notification: "Photo taken"</pre>
''Example 2: Extract text from the new photo''
<pre class="trigger-style">Triggers
Photo Taken</pre>
<pre class="action-style">Actions
Text from Image (OCR) - Photo Taken Trigger</pre>
''' Notes '''
* Requires Android 7 or later
* Storage permission is required
''' See Also '''
* [[Action: Open Last Photo|Open Last Photo Action]]
* [[Action: Share Last Photo|Share Last Photo Action]]
* [[Action: Text from Image (OCR)|Text from Image (OCR) Action]]